Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Differential Revision: D66506157
  • Loading branch information
leoleovich authored and facebook-github-bot committed Nov 26, 2024
1 parent 4f74137 commit 8c46f95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/ptpcheck/cmd/ptping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestT1IsZero(t *testing.T) {
os.Stdout = readStdout

ptpingOutput(count, server, totalRTT, ts)
expectedOutput := fmt.Sprintf("mars: seq=1 net=NaN (->1ns + <-NaN)\trtt=500µs\n")
expectedOutput := "mars: seq=1 net=NaN (->1ns + <-NaN)\trtt=500µs\n"
if string(out) != expectedOutput {
t.Errorf("Expected %s, got %s", expectedOutput, out)
}
Expand All @@ -97,7 +97,7 @@ func TestT2IsZero(t *testing.T) {
os.Stdout = readStdout

ptpingOutput(count, server, totalRTT, ts)
expectedOutput := fmt.Sprintf("jupiter: seq=2 net=NaN (->1ns + <-NaN)\trtt=250µs\n")
expectedOutput := "jupiter: seq=2 net=NaN (->1ns + <-NaN)\trtt=250µs\n"
if string(out) != expectedOutput {
t.Errorf("Expected %s, got %s", expectedOutput, out)
}
Expand Down

0 comments on commit 8c46f95

Please sign in to comment.