We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bdee7a commit 81a2f49Copy full SHA for 81a2f49
internal/integrationtest/daemon/daemon_test.go
@@ -91,6 +91,24 @@ func TestArduinoCliDaemon(t *testing.T) {
91
92
testWatcher()
93
94
+
95
+ {
96
+ // Test that the watcher stays open until the grpc call is canceled
97
98
+ ctx, cancel := context.WithTimeout(context.Background(), time.Second*2)
99
+ defer cancel()
100
101
+ start := time.Now()
102
+ watcher, err := grpcInst.BoardListWatch(ctx)
103
+ require.NoError(t, err)
104
+ for {
105
+ _, err := watcher.Recv()
106
+ if err != nil {
107
+ break
108
+ }
109
110
+ require.Greater(t, time.Since(start), 2*time.Second)
111
112
}
113
114
func TestDaemonAutoUpdateIndexOnFirstInit(t *testing.T) {
0 commit comments