Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working tests #318

Open
hz61p1 opened this issue Mar 29, 2022 · 0 comments
Open

Not working tests #318

hz61p1 opened this issue Mar 29, 2022 · 0 comments

Comments

@hz61p1
Copy link
Contributor

hz61p1 commented Mar 29, 2022

When trying to run tests

=== RUN   TestAPI
badger 2022/03/29 23:03:38 INFO: All 0 tables opened in 0s
badger 2022/03/29 23:03:38 INFO: Discard stats nextEmptySlot: 0
badger 2022/03/29 23:03:38 INFO: Set nextTxnTs to 0
badger 2022/03/29 23:03:38 INFO: All 0 tables opened in 0s
badger 2022/03/29 23:03:38 INFO: Discard stats nextEmptySlot: 0
badger 2022/03/29 23:03:38 INFO: Set nextTxnTs to 0
badger 2022/03/29 23:03:38 INFO: All 0 tables opened in 0s
badger 2022/03/29 23:03:38 INFO: Discard stats nextEmptySlot: 0
badger 2022/03/29 23:03:38 INFO: Set nextTxnTs to 0
badger 2022/03/29 23:03:38 INFO: All 0 tables opened in 0s
badger 2022/03/29 23:03:38 INFO: Discard stats nextEmptySlot: 0
badger 2022/03/29 23:03:38 INFO: Set nextTxnTs to 0
E0329 23:03:42.840653  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841346  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841404  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841430  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841448  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841465  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841483  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841513  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841575  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841618  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841657  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841685  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841727  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841782  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841821  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841885  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841916  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841944  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.841989  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.842020  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.842049  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.842078  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.842106  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.842142  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
E0329 23:03:42.842206  190346 admin_fees.go:258] Error decoding desoOutputBytes to slice of DeSoOutputs: EOF - default to no additional fees
--- FAIL: TestAPI (3.98s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xe8ed60]

goroutine 7 [running]:
testing.tRunner.func1.2({0x1097cc0, 0x1e649b0})
        /home/null/go/go1.17.6/src/testing/testing.go:1209 +0x24e
testing.tRunner.func1()
        /home/null/go/go1.17.6/src/testing/testing.go:1212 +0x218
panic({0x1097cc0, 0x1e649b0})
        /home/null/go/go1.17.6/src/runtime/panic.go:1038 +0x215
github.com/deso-protocol/core/lib.(*Server).GetMempool(...)
        /home/null/Projects/backend/.go/pkg/mod/github.com/deso-protocol/core/lib/server.go:190
github.com/deso-protocol/backend/routes.(*APIServer).SetGlobalStateCache(0xc00000da40)
        /home/null/Projects/backend/routes/server.go:2116 +0x20
github.com/deso-protocol/backend/routes.NewAPIServer(0x0, 0xc0005f42c0, 0xc0009648f0, 0xc0005fad80, 0xc000a64140, 0xc000533200, 0xc000530a00, 0x0, 0xc000272d80, 0x0, ...)
        /home/null/Projects/backend/routes/server.go:452 +0x452
github.com/deso-protocol/backend/routes.newTestAPIServer(0xc00010da00, {0x0, 0x0})
        /home/null/Projects/backend/routes/exchange_test.go:185 +0x228
github.com/deso-protocol/backend/routes.TestAPI(0xc00010da00)
        /home/null/Projects/backend/routes/exchange_test.go:211 +0x73
testing.tRunner(0xc00010da00, 0x151dd18)
        /home/null/go/go1.17.6/src/testing/testing.go:1259 +0x102
created by testing.(*T).Run
        /home/null/go/go1.17.6/src/testing/testing.go:1306 +0x35a
FAIL    github.com/deso-protocol/backend/routes    4.170s
FAIL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant