diff options
-rw-r--r-- | dhcpv6/option_relaymsg_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dhcpv6/option_relaymsg_test.go b/dhcpv6/option_relaymsg_test.go index 3eb3260..f0b2ee6 100644 --- a/dhcpv6/option_relaymsg_test.go +++ b/dhcpv6/option_relaymsg_test.go @@ -95,25 +95,25 @@ func TestRelayMsgParseOptRelayMsgSingleEncapsulation(t *testing.T) { ) } if dType := innerDHCP.Type(); dType != SOLICIT { - t.Fatal("Invalid inner DHCP type. Expected SOLICIT (%v), got %v", + t.Fatalf("Invalid inner DHCP type. Expected SOLICIT (%v), got %v", SOLICIT, dType, ) } if tID := innerDHCP.TransactionID(); tID != 0xaabbcc { - t.Fatal("Invalid inner DHCP transaction ID. Expected 0xaabbcc, got %v", tID) + t.Fatalf("Invalid inner DHCP transaction ID. Expected 0xaabbcc, got %v", tID) } if len(innerDHCP.options) != 1 { - t.Fatal("Invalid inner DHCP options length. Expected 1, got %v", len(innerDHCP.options)) + t.Fatalf("Invalid inner DHCP options length. Expected 1, got %v", len(innerDHCP.options)) } innerOpt := innerDHCP.options[0] eto, ok := innerOpt.(*OptElapsedTime) if !ok { - t.Fatal("Invalid inner option type. Expected OptElapsedTime, got %v", + t.Fatalf("Invalid inner option type. Expected OptElapsedTime, got %v", reflect.TypeOf(innerOpt), ) } if eTime := eto.ElapsedTime(); eTime != 0x1122 { - t.Fatal("Invalid elapsed time. Expected 0x1122, got 0x%04x", eTime) + t.Fatalf("Invalid elapsed time. Expected 0x1122, got 0x%04x", eTime) } } |