(t *testing.T)
| 124 | } |
| 125 | |
| 126 | func TestPendingOperationDisallowsListPorts(t *testing.T) { |
| 127 | app := testingPortsApp() |
| 128 | selector := &CodespaceSelector{api: app.apiClient, codespaceName: "disabledCodespace"} |
| 129 | |
| 130 | if err := app.ListPorts(context.Background(), selector, nil); err != nil { |
| 131 | if err.Error() != "codespace is disabled while it has a pending operation: Some pending operation" { |
| 132 | t.Errorf("expected pending operation error, but got: %v", err) |
| 133 | } |
| 134 | } else { |
| 135 | t.Error("expected pending operation error, but got nothing") |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | func TestPendingOperationDisallowsUpdatePortVisibility(t *testing.T) { |
| 140 | app := testingPortsApp() |
nothing calls this directly
no test coverage detected