@@ -2,11 +2,27 @@ function ifEndsWith (suffix) {
2
2
return testName => testName . endsWith ( suffix )
3
3
}
4
4
5
+ function ifStartsWith ( prefix ) {
6
+ return testName => testName . startsWith ( prefix )
7
+ }
8
+
9
+ function ifEquals ( expectedName ) {
10
+ return testName => testName === expectedName
11
+ }
12
+
13
+ function or ( ) {
14
+ return testName => [ ...arguments ] . find ( predicate => predicate ( testName ) )
15
+ }
16
+
5
17
function skip ( reason , predicate ) {
6
18
return { reason, predicate }
7
19
}
8
20
9
21
const skippedTests = [
22
+ skip (
23
+ 'Routing tests are disabled until the fix on the test scenario be merged' ,
24
+ or ( ifStartsWith ( 'stub.routing' ) , ifStartsWith ( 'stub.retry.TestRetry' ) )
25
+ ) ,
10
26
skip (
11
27
'Driver is failing trying to update the routing table using the original routing server' ,
12
28
ifEndsWith (
@@ -18,6 +34,65 @@ const skippedTests = [
18
34
ifEndsWith (
19
35
'test_should_successfully_check_if_support_for_multi_db_is_available'
20
36
)
37
+ ) ,
38
+ skip (
39
+ 'Driver should implement resolver' ,
40
+ or (
41
+ ifEndsWith (
42
+ 'test_should_revert_to_initial_router_if_known_router_throws_protocol_errors'
43
+ ) ,
44
+ ifEndsWith (
45
+ 'test_should_use_resolver_during_rediscovery_when_existing_routers_fail'
46
+ )
47
+ )
48
+ ) ,
49
+ skip (
50
+ 'Test are not consuming the values inside the try catch' ,
51
+ or (
52
+ ifEndsWith ( 'test_should_retry_read_tx_and_rediscovery_until_success' ) ,
53
+ ifEndsWith ( 'test_should_retry_write_tx_and_rediscovery_until_success' ) ,
54
+ ifEndsWith ( 'test_should_retry_write_tx_until_success' ) ,
55
+ ifEndsWith (
56
+ 'test_should_read_successfully_from_reachable_db_after_trying_unreachable_db'
57
+ ) ,
58
+ ifEndsWith (
59
+ 'test_should_retry_write_until_success_with_leader_shutdown_during_tx_using_tx_function'
60
+ )
61
+ )
62
+ ) ,
63
+ skip (
64
+ 'Requires investigation' ,
65
+ or (
66
+ ifEndsWith (
67
+ 'test_should_fail_when_writing_without_explicit_consumption_on_writer_that_returns_not_a_leader_code'
68
+ ) ,
69
+ ifEndsWith (
70
+ 'test_should_fail_when_writing_on_unexpectedly_interrupting_writer_using_session_run'
71
+ ) ,
72
+ ifEndsWith (
73
+ 'test_should_fail_with_routing_failure_on_db_not_found_discovery_failure'
74
+ ) ,
75
+ ifEndsWith (
76
+ 'test_should_retry_write_until_success_with_leader_change_using_tx_function'
77
+ ) ,
78
+ ifEndsWith (
79
+ 'test_should_request_rt_from_all_initial_routers_until_successful'
80
+ ) ,
81
+ ifEndsWith ( 'test_should_pass_bookmark_from_tx_to_tx_using_tx_run' ) ,
82
+ ifEndsWith ( 'test_should_successfully_get_routing_table_with_context' )
83
+ )
84
+ ) ,
85
+ skip (
86
+ 'Should implement result.consume' ,
87
+ ifEquals ( 'neo4j.sessionrun.TestSessionRun.test_updates_last_bookmark' )
88
+ ) ,
89
+ skip (
90
+ 'It could not guarantee the order of records requests between in the nested transactions' ,
91
+ ifEquals ( 'stub.iteration.TxRun.test_nested' )
92
+ ) ,
93
+ skip (
94
+ 'Keeps retrying on commit despite connection being dropped' ,
95
+ ifEquals ( 'stub.retry.TestRetry.test_disconnect_on_commit' )
21
96
)
22
97
]
23
98
0 commit comments