Skip to content

Commit b9bae09

Browse files
Add comment on proptest & tokio::test
1 parent c96aef0 commit b9bae09

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/src/cache.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,13 @@ mod tests {
248248
fn nontransactional_insert_lookup(key in any::<CacheKey>(), value in any::<Vec<u8>>()) {
249249
let cache = Cache::default();
250250

251+
// We can't use tokio::test and proptest! together; both alter the signature of the
252+
// test function, and are not aware of each other enough for it to pass.
251253
let rt = tokio::runtime::Builder::new_current_thread().build().unwrap();
252254
rt.block_on(async {
253255
let empty = cache.lookup(&key).await;
254256
assert!(empty.found().is_none());
255-
// TODO: cceckman -- check GoGet
257+
// TODO: cceckman-at-fastly -- check GoGet
256258

257259
cache.insert(&key, value.clone().into()).await;
258260

0 commit comments

Comments
 (0)