Skip to content

Instantly share code, notes, and snippets.

@jordanorelli
Created January 18, 2017 18:18
Show Gist options
  • Save jordanorelli/dfc4bb52b05d70535900102c0fc01a8a to your computer and use it in GitHub Desktop.
Save jordanorelli/dfc4bb52b05d70535900102c0fc01a8a to your computer and use it in GitHub Desktop.
=== RUN TestStores
=== RUN TestStores/pg
=== RUN TestStores/pg/devices
=== RUN TestStores/pg/devices/create_pending
=== RUN TestStores/pg/devices/create_accepted
=== RUN TestStores/pg/devices/create_rejected
=== RUN TestStores/pg/devices/unknown_status
=== RUN TestStores/pg/devices/fictional_status
=== RUN TestStores/pg/devices/hostname
=== RUN TestStores/pg/devices/hostname_and_username
=== RUN TestStores/pg/devices/windows_device
=== RUN TestStores/pg/devices/darwin_device
=== RUN TestStores/pg/devices/bogus_device
=== RUN TestStores/pg/devices/approve_device
=== RUN TestStores/pg/devices/reject_device
=== RUN TestStores/pg/matches
=== RUN TestStores/pg/matches/create_match
=== RUN TestStores/pg/matches/generate_id
=== RUN TestStores/pg/matches/host_required
=== RUN TestStores/pg/matches/port_required
=== RUN TestStores/pg/matches/gameid_required
=== RUN TestStores/pg/matches/spectatekey_required
=== RUN TestStores/pg/matches/duplicates_ok
=== RUN TestStores/pg/matches/host_immutable
=== RUN TestStores/pg/matches/port_immutable
=== RUN TestStores/pg/matches/gameid_immutable
=== RUN TestStores/pg/players
=== RUN TestStores/pg/players/create_player
=== RUN TestStores/pg/players/mutable_name
=== RUN TestStores/pg/players/add_bnet
=== RUN TestStores/pg/wallets
=== RUN TestStores/pg/wallets/create
=== RUN TestStores/pg/wallets/group_transfer
=== RUN TestStores/pg/wallets/reject_inpoverished
=== RUN TestStores/pg/wallets/transfer_everything
=== RUN TestStores/pg/wallets/for_user
=== RUN TestStores/pg/wallets/withdraw
adding devices for store: &{0xc4202e0150 0xc4202e0210 0xc4202cb7a0 0xc4202cb7b0 0xc4202cb7c0 <nil>}=== RUN TestStores/local
=== RUN TestStores/local/devices
=== RUN TestStores/local/devices/create_pending
=== RUN TestStores/local/devices/create_accepted
=== RUN TestStores/local/devices/create_rejected
=== RUN TestStores/local/devices/unknown_status
=== RUN TestStores/local/devices/fictional_status
=== RUN TestStores/local/devices/hostname
=== RUN TestStores/local/devices/hostname_and_username
=== RUN TestStores/local/devices/windows_device
=== RUN TestStores/local/devices/darwin_device
=== RUN TestStores/local/devices/bogus_device
=== RUN TestStores/local/devices/approve_device
=== RUN TestStores/local/devices/reject_device
=== RUN TestStores/local/matches
=== RUN TestStores/local/matches/create_match
=== RUN TestStores/local/matches/generate_id
=== RUN TestStores/local/matches/host_required
=== RUN TestStores/local/matches/port_required
=== RUN TestStores/local/matches/gameid_required
=== RUN TestStores/local/matches/spectatekey_required
=== RUN TestStores/local/matches/duplicates_ok
=== RUN TestStores/local/matches/host_immutable
=== RUN TestStores/local/matches/port_immutable
=== RUN TestStores/local/matches/gameid_immutable
=== RUN TestStores/local/players
=== RUN TestStores/local/players/create_player
=== RUN TestStores/local/players/mutable_name
=== RUN TestStores/local/players/add_bnet
=== RUN TestStores/local/wallets
=== RUN TestStores/local/wallets/create
=== RUN TestStores/local/wallets/group_transfer
=== RUN TestStores/local/wallets/reject_inpoverished
=== RUN TestStores/local/wallets/transfer_everything
=== RUN TestStores/local/wallets/for_user
=== RUN TestStores/local/wallets/withdraw
--- FAIL: TestStores (0.58s)
--- PASS: TestStores/pg (0.07s)
--- PASS: TestStores/pg/devices (0.03s)
--- PASS: TestStores/pg/devices/create_pending (0.00s)
--- PASS: TestStores/pg/devices/create_accepted (0.00s)
--- PASS: TestStores/pg/devices/create_rejected (0.00s)
--- PASS: TestStores/pg/devices/unknown_status (0.00s)
--- PASS: TestStores/pg/devices/fictional_status (0.00s)
--- PASS: TestStores/pg/devices/hostname (0.00s)
--- PASS: TestStores/pg/devices/hostname_and_username (0.00s)
--- PASS: TestStores/pg/devices/windows_device (0.00s)
--- PASS: TestStores/pg/devices/darwin_device (0.00s)
--- PASS: TestStores/pg/devices/bogus_device (0.00s)
--- PASS: TestStores/pg/devices/approve_device (0.00s)
--- PASS: TestStores/pg/devices/reject_device (0.00s)
--- PASS: TestStores/pg/matches (0.01s)
--- PASS: TestStores/pg/matches/create_match (0.00s)
--- PASS: TestStores/pg/matches/generate_id (0.00s)
--- PASS: TestStores/pg/matches/host_required (0.00s)
--- PASS: TestStores/pg/matches/port_required (0.00s)
--- PASS: TestStores/pg/matches/gameid_required (0.00s)
--- PASS: TestStores/pg/matches/spectatekey_required (0.00s)
--- PASS: TestStores/pg/matches/duplicates_ok (0.00s)
--- PASS: TestStores/pg/matches/host_immutable (0.00s)
--- PASS: TestStores/pg/matches/port_immutable (0.00s)
--- PASS: TestStores/pg/matches/gameid_immutable (0.00s)
--- PASS: TestStores/pg/players (0.01s)
--- PASS: TestStores/pg/players/create_player (0.00s)
--- PASS: TestStores/pg/players/mutable_name (0.00s)
--- PASS: TestStores/pg/players/add_bnet (0.00s)
--- PASS: TestStores/pg/wallets (0.02s)
--- PASS: TestStores/pg/wallets/create (0.00s)
--- PASS: TestStores/pg/wallets/group_transfer (0.00s)
--- PASS: TestStores/pg/wallets/reject_inpoverished (0.01s)
--- PASS: TestStores/pg/wallets/transfer_everything (0.01s)
--- PASS: TestStores/pg/wallets/for_user (0.00s)
--- PASS: TestStores/pg/wallets/withdraw (0.00s)
--- FAIL: TestStores/local (0.01s)
--- FAIL: TestStores/local/devices (0.00s)
--- PASS: TestStores/local/devices/create_pending (0.00s)
--- PASS: TestStores/local/devices/create_accepted (0.00s)
--- PASS: TestStores/local/devices/create_rejected (0.00s)
--- FAIL: TestStores/local/devices/unknown_status (0.00s)
assertions.go:226: Error Trace: devices_test.go:49
Error: An error is expected but got nil.
--- FAIL: TestStores/local/devices/fictional_status (0.00s)
assertions.go:226: Error Trace: devices_test.go:57
Error: An error is expected but got nil.
--- PASS: TestStores/local/devices/hostname (0.00s)
--- PASS: TestStores/local/devices/hostname_and_username (0.00s)
--- PASS: TestStores/local/devices/windows_device (0.00s)
--- PASS: TestStores/local/devices/darwin_device (0.00s)
--- FAIL: TestStores/local/devices/bogus_device (0.00s)
assertions.go:226: Error Trace: devices_test.go:109
Error: An error is expected but got nil.
--- PASS: TestStores/local/devices/approve_device (0.00s)
--- PASS: TestStores/local/devices/reject_device (0.00s)
--- FAIL: TestStores/local/matches (0.00s)
--- PASS: TestStores/local/matches/create_match (0.00s)
--- PASS: TestStores/local/matches/generate_id (0.00s)
--- FAIL: TestStores/local/matches/host_required (0.00s)
assertions.go:226: Error Trace: matches_test.go:47
Error: An error is expected but got nil.
--- FAIL: TestStores/local/matches/port_required (0.00s)
assertions.go:226: Error Trace: matches_test.go:56
Error: An error is expected but got nil.
--- FAIL: TestStores/local/matches/gameid_required (0.00s)
assertions.go:226: Error Trace: matches_test.go:65
Error: An error is expected but got nil.
--- FAIL: TestStores/local/matches/spectatekey_required (0.00s)
assertions.go:226: Error Trace: matches_test.go:74
Error: An error is expected but got nil.
--- PASS: TestStores/local/matches/duplicates_ok (0.00s)
--- FAIL: TestStores/local/matches/host_immutable (0.00s)
assertions.go:226: Error Trace: matches_test.go:102
Error: An error is expected but got nil.
Messages: shouldn't be able to mutate host
--- FAIL: TestStores/local/matches/port_immutable (0.00s)
assertions.go:226: Error Trace: matches_test.go:117
Error: An error is expected but got nil.
Messages: shouldn't be able to mutate port
--- FAIL: TestStores/local/matches/gameid_immutable (0.00s)
assertions.go:226: Error Trace: matches_test.go:132
Error: An error is expected but got nil.
Messages: shouldn't be able to mutate game id
--- PASS: TestStores/local/players (0.00s)
--- PASS: TestStores/local/players/create_player (0.00s)
--- PASS: TestStores/local/players/mutable_name (0.00s)
--- PASS: TestStores/local/players/add_bnet (0.00s)
--- FAIL: TestStores/local/wallets (0.00s)
--- FAIL: TestStores/local/wallets/create (0.00s)
assertions.go:226: Error Trace: wallets_test.go:20
Error: An error is expected but got nil.
Messages: should not create wallet with negative balance
assertions.go:226: Error Trace: wallets_test.go:23
Error: Received unexpected error:
entry already exists
Messages: failed to create a wallet
assertions.go:226: Error Trace: wallets_test.go:24
Error: Should not be: uuid.UUID{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}
Messages: didn't set an id
assertions.go:226: Error Trace: wallets_test.go:29
Error: Not equal:
expected: 100
received: -1
Messages: read back different balance
assertions.go:226: Error Trace: wallets_test.go:30
Error: Not equal:
expected: 200
received: 0
Messages: read back different pending
--- FAIL: TestStores/local/wallets/group_transfer (0.00s)
assertions.go:226: Error Trace: wallets_test.go:51
Error: Not equal:
expected: 600
received: 199
Messages: incorrect prize balance
--- FAIL: TestStores/local/wallets/reject_inpoverished (0.00s)
assertions.go:226: Error Trace: wallets_test.go:68
Error: Not equal:
expected: 43
received: 199
Messages: prize balance should not have changed
assertions.go:226: Error Trace: wallets_test.go:71
Error: Not equal:
expected: 100
received: 199
Messages: source balance changed, should not have
assertions.go:226: Error Trace: wallets_test.go:74
Error: Not equal:
expected: 1001
received: 199
Messages: source balance changed, should not have
--- FAIL: TestStores/local/wallets/transfer_everything (0.00s)
assertions.go:226: Error Trace: wallets_test.go:79
Error: Received unexpected error:
entry already exists
assertions.go:226: Error Trace: wallets_test.go:82
Error: Received unexpected error:
entry already exists
assertions.go:226: Error Trace: wallets_test.go:90
Error: Should be zero, but was 199
Messages: bob should have no money left
assertions.go:226: Error Trace: wallets_test.go:91
Error: Not equal:
expected: 3009
received: 199
Messages: alice should have all of the money
--- FAIL: TestStores/local/wallets/for_user (0.00s)
assertions.go:226: Error Trace: wallets_test.go:103
Error: Received unexpected error:
not found
Messages: didn't find a wallet
assertions.go:226: Error Trace: wallets_test.go:104
Error: Not equal:
expected: 1
received: 0
Messages: incorrect balance read
assertions.go:226: Error Trace: wallets_test.go:105
Error: Not equal:
expected: 2
received: 0
Messages: incorrect pending read
--- FAIL: TestStores/local/wallets/withdraw (0.00s)
assertions.go:226: Error Trace: wallets_test.go:122
Error: An error is expected but got nil.
Messages: permitted overdrawing of funds
FAIL
exit status 1
FAIL github.com/RumbleMonkey/rumbled/store 0.608s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment