mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 19:35:41 +03:00
Fix flaky test
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
"regexp"
|
||||
"sort"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -295,7 +296,8 @@ func TestMapStringStringSliceValueSet(t *testing.T) {
|
||||
|
||||
act := MapStringStringSliceValueSet(m)
|
||||
exp := []string{"1", "2", "3"}
|
||||
sort.Strings(act)
|
||||
if !reflect.DeepEqual(act, exp) {
|
||||
t.Fatalf("Bad")
|
||||
t.Fatalf("Bad; got %v; want %v", act, exp)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user