Test that the RPC invoker notifies the codespace of client activity on connection
(t *testing.T, server *mockServer)
| 88 | |
| 89 | // Test that the RPC invoker notifies the codespace of client activity on connection |
| 90 | func verifyNotifyCodespaceOfClientActivity(t *testing.T, server *mockServer) { |
| 91 | calls := server.CodespaceHostServerMock.NotifyCodespaceOfClientActivityCalls() |
| 92 | if len(calls) == 0 { |
| 93 | t.Fatalf("no client activity calls") |
| 94 | } |
| 95 | |
| 96 | for _, call := range calls { |
| 97 | activities := call.NotifyCodespaceOfClientActivityRequest.GetClientActivities() |
| 98 | if activities[0] == connectedEventName { |
| 99 | return |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | t.Fatalf("no activity named %s", connectedEventName) |
| 104 | } |
| 105 | |
| 106 | // Test that the RPC invoker returns the correct port and URL when the JupyterLab server starts successfully |
| 107 | func TestStartJupyterServerSuccess(t *testing.T) { |
no test coverage detected