Skip to content

Commit

Permalink
fix integ test
Browse files Browse the repository at this point in the history
  • Loading branch information
tinnywang committed Dec 2, 2024
1 parent 4299532 commit 22ff5ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agent/engine/engine_sudo_linux_integ_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ func TestFirelensFluentbit(t *testing.T) {
defer server.Close()

port := getPortFromAddr(t, server.URL)
serverURL := fmt.Sprintf("http://%s:%s", getHostPrivateIP(t, ec2.NewEC2MetadataClient(nil)), port)
ec2MetadataClient, err := ec2.NewEC2MetadataClient(nil)
require.NoError(t, err)
serverURL := fmt.Sprintf("http://%s:%s", getHostPrivateIP(t, ec2MetadataClient), port)
defer setV3MetadataURLFormat(serverURL + "/v3/%s")()

testTask := createFirelensTask(t)
Expand Down

0 comments on commit 22ff5ef

Please sign in to comment.