Skip to content

Commit

Permalink
Update fixtures.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-gang committed Feb 12, 2024
1 parent b880911 commit 4f485b3
Show file tree
Hide file tree
Showing 26 changed files with 272 additions and 270 deletions.
6 changes: 3 additions & 3 deletions internal/test_helpers/fixtures/expiry/pass
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ Debug = true
[stage-7] Running tests for Stage #7: expiry
[stage-7] $ ./spawn_redis_server.sh
[stage-7] $ redis-cli set grapes apples px 100
[stage-7] Received OK (at 17:50:51.530)
[stage-7] $ redis-cli get grapes (sent at 17:50:51.530, key should not be expired)
[stage-7] Received OK (at 17:06:05.841)
[stage-7] $ redis-cli get grapes (sent at 17:06:05.841, key should not be expired)
[stage-7] Received "apples"
[stage-7] Sleeping for 101ms
[stage-7] $ redis-cli get grapes (sent at 17:50:51.632, key should be expired)
[stage-7] $ redis-cli get grapes (sent at 17:06:05.942, key should be expired)
[stage-7] Test passed.
[stage-7] Terminating program
[stage-7] Program terminated successfully
2 changes: 1 addition & 1 deletion internal/test_helpers/fixtures/ping-pong/eof
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Debug = true
[stage-2] $ redis-cli ping
[stage-2] Reading response...
[stage-2] Hint: 'connection reset by peer' usually means that your program closed the connection before sending a complete response.
[stage-2] read tcp 127.0.0.1:59976->127.0.0.1:6379: read: connection reset by peer
[stage-2] read tcp 127.0.0.1:40934->127.0.0.1:6379: read: connection reset by peer
[stage-2] Test failed
[stage-2] Terminating program
[stage-2] Program terminated successfully
8 changes: 4 additions & 4 deletions internal/test_helpers/fixtures/rdb-config/pass
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@ Debug = true
[stage-7] Running tests for Stage #7: expiry
[stage-7] $ ./spawn_redis_server.sh
[stage-7] $ redis-cli set grapes apples px 100
[stage-7] Received OK (at 17:46:35.525)
[stage-7] $ redis-cli get grapes (sent at 17:46:35.525, key should not be expired)
[stage-7] Received OK (at 17:05:04.110)
[stage-7] $ redis-cli get grapes (sent at 17:05:04.110, key should not be expired)
[stage-7] Received "apples"
[stage-7] Sleeping for 101ms
[stage-7] $ redis-cli get grapes (sent at 17:46:35.627, key should be expired)
[stage-7] $ redis-cli get grapes (sent at 17:05:04.211, key should be expired)
[stage-7] Test passed.
[stage-7] Terminating program
[stage-7] Program terminated successfully

[stage-8] Running tests for Stage #8: rdb-config
[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3182181644 --dbfilename banana.rdb
[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3427354740 --dbfilename banana.rdb
[stage-8] $ redis-cli CONFIG GET dir
[stage-8] Test passed.
[stage-8] Terminating program
Expand Down
10 changes: 5 additions & 5 deletions internal/test_helpers/fixtures/rdb-read-key/pass
Original file line number Diff line number Diff line change
Expand Up @@ -69,25 +69,25 @@ Debug = true
[stage-7] Running tests for Stage #7: expiry
[stage-7] $ ./spawn_redis_server.sh
[stage-7] $ redis-cli set grapes apples px 100
[stage-7] Received OK (at 17:46:04.792)
[stage-7] $ redis-cli get grapes (sent at 17:46:04.792, key should not be expired)
[stage-7] Received OK (at 17:08:26.941)
[stage-7] $ redis-cli get grapes (sent at 17:08:26.941, key should not be expired)
[stage-7] Received "apples"
[stage-7] Sleeping for 101ms
[stage-7] $ redis-cli get grapes (sent at 17:46:04.893, key should be expired)
[stage-7] $ redis-cli get grapes (sent at 17:08:27.042, key should be expired)
[stage-7] Test passed.
[stage-7] Terminating program
[stage-7] Program terminated successfully

[stage-8] Running tests for Stage #8: rdb-config
[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2243917711 --dbfilename banana.rdb
[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2544575897 --dbfilename banana.rdb
[stage-8] $ redis-cli CONFIG GET dir
[stage-8] Test passed.
[stage-8] Terminating program
[stage-8] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm'

[stage-9] Running tests for Stage #9: rdb-read-key
[stage-9] Created RDB file with single key: "pear"
[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3306017459 --dbfilename blueberry.rdb
[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2889088137 --dbfilename blueberry.rdb
[stage-9] $ redis-cli KEYS *
[stage-9] Test passed.
[stage-9] Terminating program
Expand Down
14 changes: 7 additions & 7 deletions internal/test_helpers/fixtures/rdb-read-multiple-keys/pass
Original file line number Diff line number Diff line change
Expand Up @@ -69,41 +69,41 @@ Debug = true
[stage-7] Running tests for Stage #7: expiry
[stage-7] $ ./spawn_redis_server.sh
[stage-7] $ redis-cli set grapes apples px 100
[stage-7] Received OK (at 17:46:49.838)
[stage-7] $ redis-cli get grapes (sent at 17:46:49.838, key should not be expired)
[stage-7] Received OK (at 17:06:37.814)
[stage-7] $ redis-cli get grapes (sent at 17:06:37.814, key should not be expired)
[stage-7] Received "apples"
[stage-7] Sleeping for 101ms
[stage-7] $ redis-cli get grapes (sent at 17:46:49.939, key should be expired)
[stage-7] $ redis-cli get grapes (sent at 17:06:37.915, key should be expired)
[stage-7] Test passed.
[stage-7] Terminating program
[stage-7] Program terminated successfully

[stage-8] Running tests for Stage #8: rdb-config
[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1267355796 --dbfilename banana.rdb
[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3228425667 --dbfilename banana.rdb
[stage-8] $ redis-cli CONFIG GET dir
[stage-8] Test passed.
[stage-8] Terminating program
[stage-8] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm'

[stage-9] Running tests for Stage #9: rdb-read-key
[stage-9] Created RDB file with single key: "pear"
[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles541287302 --dbfilename blueberry.rdb
[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1346244657 --dbfilename blueberry.rdb
[stage-9] $ redis-cli KEYS *
[stage-9] Test passed.
[stage-9] Terminating program
[stage-9] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm'

[stage-10] Running tests for Stage #10: rdb-read-string-value
[stage-10] Created RDB file with single key-value pair: strawberry="apple"
[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3173847821 --dbfilename banana.rdb
[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1308470631 --dbfilename banana.rdb
[stage-10] $ redis-cli GET strawberry
[stage-10] Test passed.
[stage-10] Terminating program
[stage-10] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm'

[stage-11] Running tests for Stage #11: rdb-read-multiple-keys
[stage-11] Created RDB file with 5 keys: ["orange" "blueberry" "strawberry" "pineapple" "banana"]
[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles4046061762 --dbfilename pear.rdb
[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1518517472 --dbfilename pear.rdb
[stage-11] $ redis-cli KEYS *
[stage-11] Test passed.
[stage-11] Terminating program
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,49 +69,49 @@ Debug = true
[stage-7] Running tests for Stage #7: expiry
[stage-7] $ ./spawn_redis_server.sh
[stage-7] $ redis-cli set grapes apples px 100
[stage-7] Received OK (at 17:50:54.484)
[stage-7] $ redis-cli get grapes (sent at 17:50:54.484, key should not be expired)
[stage-7] Received OK (at 17:06:08.785)
[stage-7] $ redis-cli get grapes (sent at 17:06:08.785, key should not be expired)
[stage-7] Received "apples"
[stage-7] Sleeping for 101ms
[stage-7] $ redis-cli get grapes (sent at 17:50:54.585, key should be expired)
[stage-7] $ redis-cli get grapes (sent at 17:06:08.886, key should be expired)
[stage-7] Test passed.
[stage-7] Terminating program
[stage-7] Program terminated successfully

[stage-8] Running tests for Stage #8: rdb-config
[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2711934345 --dbfilename banana.rdb
[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles360452185 --dbfilename banana.rdb
[stage-8] $ redis-cli CONFIG GET dir
[stage-8] Test passed.
[stage-8] Terminating program
[stage-8] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm'

[stage-9] Running tests for Stage #9: rdb-read-key
[stage-9] Created RDB file with single key: "pear"
[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3034196230 --dbfilename blueberry.rdb
[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles973568596 --dbfilename blueberry.rdb
[stage-9] $ redis-cli KEYS *
[stage-9] Test passed.
[stage-9] Terminating program
[stage-9] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm'

[stage-10] Running tests for Stage #10: rdb-read-string-value
[stage-10] Created RDB file with single key-value pair: strawberry="apple"
[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1569058598 --dbfilename banana.rdb
[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles997733393 --dbfilename banana.rdb
[stage-10] $ redis-cli GET strawberry
[stage-10] Test passed.
[stage-10] Terminating program
[stage-10] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm'

[stage-11] Running tests for Stage #11: rdb-read-multiple-keys
[stage-11] Created RDB file with 5 keys: ["orange" "blueberry" "strawberry" "pineapple" "banana"]
[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles897471162 --dbfilename pear.rdb
[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles369671918 --dbfilename pear.rdb
[stage-11] $ redis-cli KEYS *
[stage-11] Test passed.
[stage-11] Terminating program
[stage-11] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm'

[stage-12] Running tests for Stage #12: rdb-read-multiple-string-values
[stage-12] Created RDB file with key-value pairs: "orange"="grape", "mango"="pear", "grape"="blueberry", "pear"="pineapple"
[stage-12] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles7429286 --dbfilename apple.rdb
[stage-12] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles4056080642 --dbfilename apple.rdb
[stage-12] $ redis-cli GET orange
[stage-12] $ redis-cli GET mango
[stage-12] $ redis-cli GET grape
Expand Down
18 changes: 9 additions & 9 deletions internal/test_helpers/fixtures/rdb-read-value-with-expiry/pass
Original file line number Diff line number Diff line change
Expand Up @@ -69,49 +69,49 @@ Debug = true
[stage-7] Running tests for Stage #7: expiry
[stage-7] $ ./spawn_redis_server.sh
[stage-7] $ redis-cli set grapes apples px 100
[stage-7] Received OK (at 17:49:05.328)
[stage-7] $ redis-cli get grapes (sent at 17:49:05.328, key should not be expired)
[stage-7] Received OK (at 17:06:22.245)
[stage-7] $ redis-cli get grapes (sent at 17:06:22.245, key should not be expired)
[stage-7] Received "apples"
[stage-7] Sleeping for 101ms
[stage-7] $ redis-cli get grapes (sent at 17:49:05.430, key should be expired)
[stage-7] $ redis-cli get grapes (sent at 17:06:22.346, key should be expired)
[stage-7] Test passed.
[stage-7] Terminating program
[stage-7] Program terminated successfully

[stage-8] Running tests for Stage #8: rdb-config
[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1552243124 --dbfilename banana.rdb
[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3286858633 --dbfilename banana.rdb
[stage-8] $ redis-cli CONFIG GET dir
[stage-8] Test passed.
[stage-8] Terminating program
[stage-8] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm'

[stage-9] Running tests for Stage #9: rdb-read-key
[stage-9] Created RDB file with single key: "pear"
[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1002264537 --dbfilename blueberry.rdb
[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3373171157 --dbfilename blueberry.rdb
[stage-9] $ redis-cli KEYS *
[stage-9] Test passed.
[stage-9] Terminating program
[stage-9] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm'

[stage-10] Running tests for Stage #10: rdb-read-string-value
[stage-10] Created RDB file with single key-value pair: strawberry="apple"
[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles896246511 --dbfilename banana.rdb
[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles235023805 --dbfilename banana.rdb
[stage-10] $ redis-cli GET strawberry
[stage-10] Test passed.
[stage-10] Terminating program
[stage-10] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm'

[stage-11] Running tests for Stage #11: rdb-read-multiple-keys
[stage-11] Created RDB file with 5 keys: ["orange" "blueberry" "strawberry" "pineapple" "banana"]
[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3832849681 --dbfilename pear.rdb
[stage-11] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3548981705 --dbfilename pear.rdb
[stage-11] $ redis-cli KEYS *
[stage-11] Test passed.
[stage-11] Terminating program
[stage-11] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm'

[stage-12] Running tests for Stage #12: rdb-read-multiple-string-values
[stage-12] Created RDB file with key-value pairs: "orange"="grape", "mango"="pear", "grape"="blueberry", "pear"="pineapple"
[stage-12] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles4246796746 --dbfilename apple.rdb
[stage-12] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles510463612 --dbfilename apple.rdb
[stage-12] $ redis-cli GET orange
[stage-12] $ redis-cli GET mango
[stage-12] $ redis-cli GET grape
Expand All @@ -121,7 +121,7 @@ Debug = true
[stage-12] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm'

[stage-13] Running tests for Stage #13: rdb-read-value-with-expiry
[stage-13] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3430211170 --dbfilename apple.rdb
[stage-13] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2932128110 --dbfilename apple.rdb
[stage-13] $ redis-cli GET pineapple
[stage-13] $ redis-cli GET raspberry
[stage-13] $ redis-cli GET blueberry
Expand Down
12 changes: 6 additions & 6 deletions internal/test_helpers/fixtures/rdb-string-value/pass
Original file line number Diff line number Diff line change
Expand Up @@ -69,33 +69,33 @@ Debug = true
[stage-7] Running tests for Stage #7: expiry
[stage-7] $ ./spawn_redis_server.sh
[stage-7] $ redis-cli set grapes apples px 100
[stage-7] Received OK (at 17:46:40.577)
[stage-7] $ redis-cli get grapes (sent at 17:46:40.577, key should not be expired)
[stage-7] Received OK (at 17:08:34.090)
[stage-7] $ redis-cli get grapes (sent at 17:08:34.090, key should not be expired)
[stage-7] Received "apples"
[stage-7] Sleeping for 101ms
[stage-7] $ redis-cli get grapes (sent at 17:46:40.678, key should be expired)
[stage-7] $ redis-cli get grapes (sent at 17:08:34.191, key should be expired)
[stage-7] Test passed.
[stage-7] Terminating program
[stage-7] Program terminated successfully

[stage-8] Running tests for Stage #8: rdb-config
[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3946266756 --dbfilename banana.rdb
[stage-8] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles2545953674 --dbfilename banana.rdb
[stage-8] $ redis-cli CONFIG GET dir
[stage-8] Test passed.
[stage-8] Terminating program
[stage-8] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm'

[stage-9] Running tests for Stage #9: rdb-read-key
[stage-9] Created RDB file with single key: "pear"
[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1496371479 --dbfilename blueberry.rdb
[stage-9] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles1431063544 --dbfilename blueberry.rdb
[stage-9] $ redis-cli KEYS *
[stage-9] Test passed.
[stage-9] Terminating program
[stage-9] Error terminating program: 'program failed to exit in 2 seconds after receiving sigterm'

[stage-10] Running tests for Stage #10: rdb-read-string-value
[stage-10] Created RDB file with single key-value pair: strawberry="apple"
[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles3554182541 --dbfilename banana.rdb
[stage-10] $ ./spawn_redis_server.sh --dir /tmp/rdbfiles112817032 --dbfilename banana.rdb
[stage-10] $ redis-cli GET strawberry
[stage-10] Test passed.
[stage-10] Terminating program
Expand Down
Loading

0 comments on commit 4f485b3

Please sign in to comment.