Skip to content

Commit

Permalink
Fix regression in integration test.
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Hallgren <thomas@tada.se>
  • Loading branch information
thallgren committed Oct 12, 2024
1 parent a5715cb commit 67ce3c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion integration_test/legacy_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (s *singleServiceSuite) Test_LegacySwapDeploymentDoesIntercept() {
if err != nil || stderr != "" {
return false
}
return strings.Contains(stdout, "No Workloads (Deployments, StatefulSets, ReplicaSets or Rollouts)")
return strings.Contains(stdout, "No Workloads")
},
10*time.Second,
1*time.Second,
Expand Down
4 changes: 2 additions & 2 deletions integration_test/multiple_services_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ func (s *multipleServicesSuite) Test_ListOnlyMapped() {
s.TelepresenceConnect(ctx, "--mapped-namespaces", "default")

stdout := itest.TelepresenceOk(ctx, "list")
require.Contains(stdout, "No Workloads (Deployments, StatefulSets, ReplicaSets or Rollouts)")
require.Contains(stdout, "No Workloads")

stdout = s.TelepresenceConnect(ctx, "--mapped-namespaces", "all")
require.Empty(stdout)

stdout = itest.TelepresenceOk(ctx, "list")
require.NotContains(stdout, "No Workloads (Deployments, StatefulSets, ReplicaSets or Rollouts)")
require.NotContains(stdout, "No Workloads")
}

func (s *multipleServicesSuite) Test_RepeatedConnect() {
Expand Down

0 comments on commit 67ce3c8

Please sign in to comment.