Skip to content

Commit 3f35821

Browse files
committed
set fake host in publisher test for error case
1 parent 2dcbcc9 commit 3f35821

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/using-publisher/main_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ func TestMain(m *testing.M) {
2727
}
2828

2929
func TestExamplePublisherError(t *testing.T) {
30+
t.Setenv("PUBSUB_BROKER", "localhost:1092")
31+
3032
configs := testutil.NewServerConfigs(t)
3133
host := fmt.Sprint("http://localhost:", configs.HTTPPort)
3234

0 commit comments

Comments
 (0)