Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Fix portforward unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Apr 1, 2020
1 parent 6347872 commit 9a9c72b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/portforward/portforward_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestFindPodByLabelsNoneExist(t *testing.T) {

_, err := pf.findPodByLabels()
assert.NotNil(t, err)
assert.Equal(t, "Could not find pod for selector: labels \"name=flux\"", err.Error())
assert.Equal(t, "Could not find running pod for selector: labels \"name=flux\"", err.Error())
}

func TestFindPodByLabelsMultiple(t *testing.T) {
Expand Down Expand Up @@ -135,7 +135,7 @@ func TestFindPodByLabelsExpressionNotFound(t *testing.T) {

_, err := pf.findPodByLabels()
assert.NotNil(t, err)
assert.Equal(t, "Could not find pod for selector: labels \"name in (flux,fluxd)\"", err.Error())
assert.Equal(t, "Could not find running pod for selector: labels \"name in (flux,fluxd)\"", err.Error())
}

func TestGetPodNameNameSet(t *testing.T) {
Expand Down

0 comments on commit 9a9c72b

Please sign in to comment.