Skip to content

Commit

Permalink
Merge branch 'master' into speed-up-windows-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wcs1only authored Sep 3, 2020
2 parents 2a5793e + ce6562c commit 9346ba4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/messaging/direct_messaging.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (d *directMessaging) requestNamespace(targetAppID string) (string, error) {
if len(items) == 1 {
return d.namespace, nil
} else if len(items) == 2 {
return items[0], nil
return items[1], nil
} else {
return "", fmt.Errorf("invalid app id %s", targetAppID)
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/messaging/direct_messaging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func TestKubernetesNamespace(t *testing.T) {
})

t.Run("with namespace", func(t *testing.T) {
appID := "ns1.app1"
appID := "app1.ns1"

dm := newDirectMessaging()
ns, err := dm.requestNamespace(appID)
Expand All @@ -75,7 +75,7 @@ func TestKubernetesNamespace(t *testing.T) {
})

t.Run("invalid namespace", func(t *testing.T) {
appID := "ns1.ns2.app1"
appID := "app1.ns1.ns2"

dm := newDirectMessaging()
_, err := dm.requestNamespace(appID)
Expand Down

0 comments on commit 9346ba4

Please sign in to comment.