Skip to content

Commit be7bad8

Browse files
committed
Fix should_fail_when_io_thread_used
get requires primary keys, not the actual entity itself.
1 parent 2b196a9 commit be7bad8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

driver-mapping/src/test/java/com/datastax/driver/mapping/MapperTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ public void should_fail_when_io_thread_used() throws Exception {
396396
executeFunctionAndTestForException(u, mapper, new Function<Void, Thread>() {
397397
@Override
398398
public Thread apply(Void v) {
399-
mapper.get(u);
399+
mapper.get(u.getUserId());
400400
return Thread.currentThread();
401401
}
402402
});

0 commit comments

Comments
 (0)