Skip to content

Commit

Permalink
adapt tests to avoid complains with the format
Browse files Browse the repository at this point in the history
Change-Id: Ie90d72f48e42c9d896ba302685352295efacc099
Signed-off-by: Antonio Ojea <[email protected]>
  • Loading branch information
aojea authored and stapelberg committed Jan 15, 2025
1 parent 4d2aea8 commit 3cae477
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions nftables_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,7 @@ func TestSecMarkMarshaling(t *testing.T) {
conn.AddObj(sec)

if err := conn.Flush(); err != nil {
t.Fatalf(err.Error())
t.Fatal(err.Error())
}
}

Expand Down Expand Up @@ -1492,7 +1492,7 @@ func TestSynProxyObject(t *testing.T) {
conn.AddObj(syn2)
conn.AddObj(syn3)
if err := conn.Flush(); err != nil {
t.Fatalf(err.Error())
t.Fatal(err)
}

objs, err := conn.GetNamedObjects(table)
Expand Down Expand Up @@ -1637,7 +1637,7 @@ func TestCtTimeout(t *testing.T) {
})

if err := conn.Flush(); err != nil {
t.Fatalf(err.Error())
t.Fatal(err)
}

obj, err := conn.GetObject(ctt1)
Expand Down Expand Up @@ -1693,7 +1693,7 @@ func TestCtExpect(t *testing.T) {

conn.AddObj(cte)
if err := conn.Flush(); err != nil {
t.Fatalf(err.Error())
t.Fatal(err)
}

objs, err := conn.GetNamedObjects(table)
Expand Down Expand Up @@ -1758,7 +1758,7 @@ func TestCtHelper(t *testing.T) {
})

if err := conn.Flush(); err != nil {
t.Fatalf(err.Error())
t.Fatal(err)
}

obj1, err := conn.GetObject(cthelp1)
Expand Down Expand Up @@ -2590,7 +2590,7 @@ func TestGetResetNamedObj(t *testing.T) {
})

if err := c.Flush(); err != nil {
t.Fatalf(err.Error())
t.Fatal(err)
}

objsNamed, err := c.GetNamedObjects(table)
Expand Down Expand Up @@ -2698,7 +2698,7 @@ func TestObjAPI(t *testing.T) {
})

if err := c.Flush(); err != nil {
t.Fatalf(err.Error())
t.Fatal(err)
}

objs, err := c.GetObjects(table)
Expand Down Expand Up @@ -3049,7 +3049,7 @@ func TestObjAPICounterLegacyType(t *testing.T) {
})

if err := c.Flush(); err != nil {
t.Fatalf(err.Error())
t.Fatal(err)
}

objs, err := c.GetObjects(table)
Expand Down

0 comments on commit 3cae477

Please sign in to comment.