Skip to content

Commit

Permalink
error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Claude Hähni committed Aug 27, 2019
1 parent f265430 commit 4469eb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions go/lib/layers/extensions_layer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func TestExtensionDecodeFromBytes(t *testing.T) {
assert.Error(t, err)
} else {
require.NoError(t, err)
assert.Equal(t, tc.ExpectedExtension, extn)
assert.Equal(t, tc.ExpectedExtension, extn, "extension must matches")
}
})
}
Expand Down Expand Up @@ -168,8 +168,9 @@ func TestExtensionSerializeTo(t *testing.T) {
assert.Error(t, err)
} else {
require.NoError(t, err)
assert.Equal(t, tc.ExpectedBytes, b.Bytes(), "b")
assert.Equal(t, tc.ExpectedLength, tc.Extension.NumLines, "updated length field")
assert.Equal(t, tc.ExpectedBytes, b.Bytes(), "buffer must match")
assert.Equal(t, tc.ExpectedLength, tc.Extension.NumLines,
"updated length field must match")
}
})
}
Expand Down
4 changes: 2 additions & 2 deletions go/lib/layers/extensions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func TestExtnSCMPDecodeFromLayer(t *testing.T) {
assert.Error(t, err)
} else {
require.NoError(t, err)
assert.Equal(t, tc.ExpectedExtension, extn)
assert.Equal(t, tc.ExpectedExtension, extn, "extension must match")
}
})
}
Expand Down Expand Up @@ -147,7 +147,7 @@ func TestExtnUnkownDecodeFromLayer(t *testing.T) {
assert.Error(t, err)
} else {
require.NoError(t, err)
assert.Equal(t, tc.ExpectedExtension, extn)
assert.Equal(t, tc.ExpectedExtension, extn, "extension must match")
}
})
}
Expand Down

0 comments on commit 4469eb5

Please sign in to comment.