Files
coder/scaletest/dashboard/rolltable_internal_test.go
2023-07-27 09:40:13 +01:00

18 lines
333 B
Go

package dashboard
import (
"testing"
"github.com/stretchr/testify/require"
)
func Test_allActions_ordering(t *testing.T) {
t.Parallel()
last := -1
for idx, entry := range DefaultActions {
require.Greater(t, entry.Roll, last, "roll table must be in ascending order, entry %d is out of order", idx)
last = entry.Roll
}
}