Skip to content

Commit dcab36e

Browse files
committed
fix: two conflicting tests... this seems more reasonable
1 parent 233e7e3 commit dcab36e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ impl Client {
342342
}
343343
}
344344

345-
true // leaving a workspace we aren't attached to is a no-op: return true because no more refs
345+
false
346346
}
347347

348348
/// Gets a [`Workspace`] handle by name.

src/tests/e2e/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async fn test_attach_and_leave_workspace() {
6161

6262
let _ = client.delete_workspace(workspace_name).await;
6363

64-
assert_or_err!(leave_workspace_before, "leaving a workspace you are not attached to returned false, should return true.");
64+
assert_or_err!(leave_workspace_before == false, "leaving a workspace you are not attached to returned true, should return false.");
6565
assert_or_err!(attach_workspace_that_exists, "attaching a workspace that exists failed with error");
6666
assert_or_err!(leave_workspace_after, "leaving a workspace with a single reference returned false.");
6767

0 commit comments

Comments
 (0)