(t *testing.T)
| 81 | } |
| 82 | |
| 83 | func TestTopicCloseIsCalled(t *testing.T) { |
| 84 | ctx := context.Background() |
| 85 | dt := &funcTopic{} |
| 86 | topic := pubsub.NewTopic(dt, nil) |
| 87 | topic.Shutdown(ctx) |
| 88 | if !dt.closed { |
| 89 | t.Error("want Topic.Close to have been called") |
| 90 | } |
| 91 | } |