Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
Chao Wang committed Apr 6, 2017
1 parent dbba223 commit 4cfe7d8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions rules/mapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,5 @@ func TestMappingRuleActiveRuleFound_Second(t *testing.T) {
func TestMappingRuleActiveRuleFound_First(t *testing.T) {
mr, err := newMappingRule(testMappingRuleSchema, nil)
require.NoError(t, err)
expected := &mappingRule{
uuid: mr.uuid,
snapshots: mr.snapshots,
}
require.Equal(t, expected, mr.ActiveRule(20000))
require.Equal(t, mr, mr.ActiveRule(20000))
}

0 comments on commit 4cfe7d8

Please sign in to comment.