Skip to content

Commit b8cbaa2

Browse files
committed
lint
1 parent dd9f217 commit b8cbaa2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

audio_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func TestAudio_Validate(t *testing.T) {
5656
},
5757
CompanionType: []int{VASTCompanionStatic, VASTCompanionHTML},
5858
}
59-
if exp, got := ErrInvalidAudioNoMimes, subject.Validate(); !errors.Is(exp, got) {
59+
if exp, got := ErrInvalidAudioNoMimes, subject.Validate(); !errors.Is(got, exp) {
6060
t.Fatalf("expected %v, got %v", exp, got)
6161
}
6262
}

bid_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ func TestBid(t *testing.T) {
3535

3636
func TestBid_Validate(t *testing.T) {
3737
subject := &Bid{}
38-
if exp, got := ErrInvalidBidNoID, subject.Validate(); !errors.Is(exp, got) {
38+
if exp, got := ErrInvalidBidNoID, subject.Validate(); !errors.Is(got, exp) {
3939
t.Fatalf("expected %v, got %v", exp, got)
4040
}
4141
subject = &Bid{ID: "BIDID"}
42-
if exp, got := ErrInvalidBidNoImpID, subject.Validate(); !errors.Is(exp, got) {
42+
if exp, got := ErrInvalidBidNoImpID, subject.Validate(); !errors.Is(got, exp) {
4343
t.Fatalf("expected %v, got %v", exp, got)
4444
}
4545
}

0 commit comments

Comments
 (0)