Fix flaky test

This commit is contained in:
Alex Dadgar
2016-10-27 11:48:00 -07:00
parent 1cb522b93e
commit 4a307aec34

View File

@@ -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)
}
}