(t *testing.T)
| 89 | } |
| 90 | |
| 91 | func TestPendingOperationDisallowsListPorts(t *testing.T) { |
| 92 | app := testingPortsApp() |
| 93 | selector := &CodespaceSelector{api: app.apiClient, codespaceName: "disabledCodespace"} |
| 94 | |
| 95 | if err := app.ListPorts(context.Background(), selector, nil); err != nil { |
| 96 | if err.Error() != "codespace is disabled while it has a pending operation: Some pending operation" { |
| 97 | t.Errorf("expected pending operation error, but got: %v", err) |
| 98 | } |
| 99 | } else { |
| 100 | t.Error("expected pending operation error, but got nothing") |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | func TestPendingOperationDisallowsUpdatePortVisibility(t *testing.T) { |
| 105 | app := testingPortsApp() |
nothing calls this directly
no test coverage detected