(t *testing.T)
| 63 | ) |
| 64 | |
| 65 | func TestComponent(t *testing.T) { |
| 66 | ctx := log.NewContext(test.Context(), test.GetLogger(t)) |
| 67 | |
| 68 | c := componenttest.NewComponent(t, &component.Config{}) |
| 69 | |
| 70 | test.Must(New(c, &Config{ |
| 71 | AuthenticationMode: "oauth2", |
| 72 | }, testOptions...)) |
| 73 | componenttest.StartComponent(t, c) |
| 74 | defer c.Close() |
| 75 | |
| 76 | mustHavePeer(ctx, c, ttnpb.ClusterRole_PACKET_BROKER_AGENT) |
| 77 | } |
| 78 | |
| 79 | func TestForwarder(t *testing.T) { |
| 80 | ctx := log.NewContext(test.Context(), test.GetLogger(t)) |
nothing calls this directly
no test coverage detected