fix(e2e): Add missing require

This commit is contained in:
Michael Li committed 2022-10-12 09:49:08 -04:00
1 parent fa39fe5b0f
commit 86dafced1a
1 file changed
+1
@@ -216,6 +216,7 @@ func TestCreateTargetApi(t *testing.T) {
// Create a target
tClient := targets.NewClient(client)
targetPort, err := strconv.ParseInt(c.TargetPort, 10, 32)
require.NoError(t, err)
newTargetResult, err := tClient.Create(ctx, "tcp", newProjectId,
targets.WithName("e2e Automated Test Target"),
targets.WithTcpTargetDefaultPort(uint32(targetPort)),