Skip to content

Commit

Permalink
fix unit test relying on slice order
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Aldrich committed Mar 19, 2016
1 parent 82048b6 commit 6ea9321
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/searchsearch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ func TestSearch(t *testing.T) {

b, err := out.Hits.Hits[0].Source.MarshalJSON()
h1 := gou.NewJsonHelper(b)
So(h1.Keys(), ShouldResemble, []string{"name", "goals"})
So(h1.Keys(), ShouldContain, "name")
So(h1.Keys(), ShouldContain, "goals")
})
}

0 comments on commit 6ea9321

Please sign in to comment.