Skip to content

Commit

Permalink
fix TestExportFail test
Browse files Browse the repository at this point in the history
Summary: Some assumptions have changed and the test is failing with "localhost". Hard failure can be simulated by another IP

Reviewed By: abulimov

Differential Revision: D58577773

fbshipit-source-id: c0b82f1dc16b028da4b2570457528e53f8cfbc8c
  • Loading branch information
leoleovich authored and facebook-github-bot committed Jun 14, 2024
1 parent 2661421 commit 9b8c0c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calnex/export/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func TestExportFail(t *testing.T) {
err = Export(parsed.Host, true, true, []api.Channel{api.ChannelONE}, nil)
require.ErrorIs(t, errNoTarget, err)

err = Export("localhost", true, true, []api.Channel{api.ChannelONE}, nil)
err = Export("1.2.3.4", true, true, []api.Channel{api.ChannelONE}, nil)
require.Error(t, err)
require.True(t, isHardFailure(err), "error should be hard failure")
}
Expand Down

0 comments on commit 9b8c0c3

Please sign in to comment.