Skip to content

Commit 1145f7a

Browse files
committed
remove sleeps from e2e test
1 parent cd4580e commit 1145f7a

File tree

1 file changed

+0
-10
lines changed
  • e2e-tests/disabled-auth

1 file changed

+0
-10
lines changed

e2e-tests/disabled-auth/run

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ wait_for_running $cluster-rs2 3
2929
wait_for_running $cluster-cfg 3 "false"
3030
wait_for_running $cluster-mongos 3
3131

32-
sleep 10
33-
3432
desc 'write data without auth'
3533
run_mongos \
3634
'use myApp\n db.createCollection("test")' \
@@ -55,8 +53,6 @@ desc 'run backup without auth'
5553
run_backup minio ${backup_name_no_auth}
5654
wait_backup "$backup_name_no_auth"
5755

58-
sleep 5
59-
6056
desc 'insert new data without auth'
6157
run_mongos \
6258
'use myApp\n db.test.insert({x: 100501})' \
@@ -69,8 +65,6 @@ desc 'restore from backup (no auth)'
6965
run_restore "$backup_name_no_auth"
7066
wait_restore "$backup_name_no_auth" "$cluster"
7167

72-
sleep 20
73-
7468
desc 'verify data was restored to original state'
7569
compare_mongos_cmd "find" "@$cluster-mongos.$namespace" "-after-restore" "" "myApp" "test" "$custom_port"
7670

@@ -107,8 +101,6 @@ desc 'run backup with auth enabled'
107101
run_backup minio ${backup_name_with_auth}
108102
wait_backup "$backup_name_with_auth"
109103

110-
sleep 5
111-
112104
desc 'insert more data with auth'
113105
run_mongos \
114106
'use myApp\n db.test.insert({x: 200501})' \
@@ -121,8 +113,6 @@ desc 'restore from backup (with auth)'
121113
run_restore "$backup_name_with_auth"
122114
wait_restore "$backup_name_with_auth" "$cluster"
123115

124-
sleep 10
125-
126116
desc 'verify data was restored to state before last insert'
127117
compare_mongos_cmd "find" "myApp:myPass@$cluster-mongos.$namespace" "-after-restore-auth" "" "myApp" "test" "$custom_port"
128118

0 commit comments

Comments
 (0)