Skip to content

Commit 0ee3fe2

Browse files
authored
avoid conflict in take() (#55)
Signed-off-by: Teo Koon Peng <[email protected]>
1 parent e430c14 commit 0ee3fe2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/builder.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,9 @@ mod tests {
11981198
context.command(|commands| commands.request(input, workflow).take_response());
11991199

12001200
context.run_with_conditions(&mut promise, Duration::from_secs(2));
1201-
assert!(promise.take().available().is_some_and(|v| v == expectation));
1201+
assert!(Promise::take(&mut promise)
1202+
.available()
1203+
.is_some_and(|v| v == expectation));
12021204
assert!(context.no_unhandled_errors());
12031205
}
12041206
}

0 commit comments

Comments
 (0)