File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments