Skip to content

Commit

Permalink
Merge pull request #572 from hahwul/fixed-bug-in-testcode
Browse files Browse the repository at this point in the history
fix: update NewMessageID test to check for positive values
  • Loading branch information
hahwul committed Sep 1, 2024
2 parents ef03dfd + 284ff21 commit 0e934b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/har/message_id_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ func TestNewMessageID(t *testing.T) {
}{
{
name: "Test case 1",
}
},
}

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := NewMessageID(); got != nil {
t.Errorf("NewMessageID() = %v, got)
if got := NewMessageID(); got <= 0 {
t.Errorf("NewMessageID() = %v", got)
}
})
}
Expand Down

0 comments on commit 0e934b7

Please sign in to comment.