Skip to content

Commit

Permalink
remove outdate comment
Browse files Browse the repository at this point in the history
  • Loading branch information
smsunarto committed Nov 9, 2023
1 parent af850e1 commit 4c480dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion cardinal/cardinal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ type Foo struct{}
func (Foo) Name() string { return "foo" }

func TestNewWorld(t *testing.T) {
// should fail, this test should generate a compile error if the function signature changes.
_, err := cardinal.NewWorld(cardinal.WithNamespace("testnamespace"))
assert.NilError(t, err)
}
Expand Down
3 changes: 1 addition & 2 deletions internal/e2e/tester/cardinal/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
)

func main() {
redisAddr := os.Getenv("REDIS_ADDR")
namespace := os.Getenv("NAMESPACE")
options := []cardinal.WorldOption{
cardinal.WithNamespace(namespace),
Expand All @@ -26,7 +25,7 @@ func main() {
options = append(options, cardinal.WithAdapter(setupAdapter()))
}

world, err := cardinal.NewWorld(redisAddr, "", options...)
world, err := cardinal.NewWorld(options...)
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 4c480dd

Please sign in to comment.