Untitled

 avatar
unknown
plain_text
4 years ago
17 kB
9
Indexable
root@fintech1-test401:~/eightcat# go test ./dbm/...
time="2021-10-21T17:17:33Z" level=info msg="Loading module - dummybill.so"
time="2021-10-21T17:17:33Z" level=info msg="Loading module - dummyhsm.so"
time="2021-10-21T17:17:33Z" level=info msg="Loading module - dummyreport.so"
time="2021-10-21T17:17:33Z" level=info msg="Loading module - kafkareport.so"
time="2021-10-21T17:17:33Z" level=info msg="Loading module - mnetbill.so"
panic: Error 1049: Unknown database 'eightcat'

goroutine 1 [running]:
frontiir.com/eightcat/dbm.NewTestDatabaseManager(0xc0002bdc50, 0x1, 0x1, 0x13)
        /root/eightcat/dbm/dbm.go:232 +0x3df
frontiir.com/eightcat/dbm.init()
        /root/eightcat/dbm/dbm_test.go:18 +0x41d
FAIL    frontiir.com/eightcat/dbm       0.364s
time="2021-10-21T17:17:35Z" level=info msg="Loading module - dummybill.so"
time="2021-10-21T17:17:35Z" level=info msg="Loading module - dummyhsm.so"
time="2021-10-21T17:17:35Z" level=info msg="Loading module - dummyreport.so"
time="2021-10-21T17:17:35Z" level=info msg="Loading module - kafkareport.so"
time="2021-10-21T17:17:35Z" level=info msg="Loading module - mnetbill.so"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xebe8c5]

goroutine 1 [running]:
github.com/jmoiron/sqlx.(*DB).Exec(0x0, 0xc000146030, 0x2c, 0x0, 0x0, 0x0, 0x2, 0x2, 0xc000146030, 0x2c)
        <autogenerated>:1 +0x5
github.com/jmoiron/sqlx.MustExec(...)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:716
github.com/jmoiron/sqlx.(*DB).MustExec(0x0, 0xc000146030, 0x2c, 0x0, 0x0, 0x0, 0x2c, 0xa734c9)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:370 +0x70
frontiir.com/eightcat/dbm/acct.(*Manager).TearDown(...)
        /root/eightcat/dbm/acct/journal_manager.go:51
frontiir.com/eightcat/dbm/acct_test.TestMain(0xc000728880)
        /root/eightcat/dbm/acct/acct_test.go:28 +0x19a
main.main()
        _testmain.go:44 +0x135
FAIL    frontiir.com/eightcat/dbm/acct  0.499s
?       frontiir.com/eightcat/dbm/acct/types    [no test files]
?       frontiir.com/eightcat/dbm/bills [no test files]
ok      frontiir.com/eightcat/dbm/bills/types   (cached)
ok      frontiir.com/eightcat/dbm/cache (cached)
time="2021-10-21T17:17:42Z" level=info msg="Loading module - dummybill.so"
time="2021-10-21T17:17:42Z" level=info msg="Loading module - dummyhsm.so"
time="2021-10-21T17:17:42Z" level=info msg="Loading module - dummyreport.so"
time="2021-10-21T17:17:42Z" level=info msg="Loading module - kafkareport.so"
time="2021-10-21T17:17:42Z" level=info msg="Loading module - mnetbill.so"
panic: Error 1049: Unknown database 'eightcat'

goroutine 1 [running]:
frontiir.com/eightcat/dbm.NewTestDatabaseManager(0xc00031a590, 0x1, 0x1, 0x18)
        /root/eightcat/dbm/dbm.go:232 +0x3df
frontiir.com/eightcat/dbm/card_test.init()
        /root/eightcat/dbm/card/card_test.go:19 +0x73
FAIL    frontiir.com/eightcat/dbm/card  0.499s
time="2021-10-21T17:17:42Z" level=info msg="Loading module - dummybill.so"
time="2021-10-21T17:17:42Z" level=info msg="Loading module - dummyhsm.so"
time="2021-10-21T17:17:42Z" level=info msg="Loading module - dummyreport.so"
time="2021-10-21T17:17:42Z" level=info msg="Loading module - kafkareport.so"
time="2021-10-21T17:17:42Z" level=info msg="Loading module - mnetbill.so"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xebe465]

goroutine 1 [running]:
github.com/jmoiron/sqlx.(*DB).Exec(0x0, 0xc00082c000, 0x27, 0x0, 0x0, 0x0, 0x2, 0x2, 0xc00082c000, 0x27)
        <autogenerated>:1 +0x5
github.com/jmoiron/sqlx.MustExec(...)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:716
github.com/jmoiron/sqlx.(*DB).MustExec(0x0, 0xc00082c000, 0x27, 0x0, 0x0, 0x0, 0x27, 0xc000502000)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:370 +0x70
frontiir.com/eightcat/dbm/cashpool.(*Manager).TearDown(0xc0003f88a0)
        /root/eightcat/dbm/cashpool/cashpool_manager.go:69 +0x95
frontiir.com/eightcat/dbm/cashpool_test.TestMain(0xc000168680)
        /root/eightcat/dbm/cashpool/cashpool_test.go:29 +0x1c6
main.main()
        _testmain.go:54 +0x135
FAIL    frontiir.com/eightcat/dbm/cashpool      0.473s
?       frontiir.com/eightcat/dbm/common        [no test files]
time="2021-10-21T17:17:45Z" level=info msg="Loading module - dummybill.so"
time="2021-10-21T17:17:45Z" level=info msg="Loading module - dummyhsm.so"
time="2021-10-21T17:17:45Z" level=info msg="Loading module - dummyreport.so"
time="2021-10-21T17:17:45Z" level=info msg="Loading module - kafkareport.so"
time="2021-10-21T17:17:46Z" level=info msg="Loading module - mnetbill.so"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa17439]

goroutine 1 [running]:
github.com/jmoiron/sqlx.(*DB).QueryRowx(0x0, 0xc00068e000, 0x2e, 0xc000294090, 0x1, 0x1, 0xa)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:363 +0x29
github.com/jmoiron/sqlx.Get(0xfef020, 0x0, 0xc98f80, 0xc0007fac58, 0xc00068e000, 0x2e, 0xc000294090, 0x1, 0x1, 0xc00043daf0, ...)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:685 +0x6d
github.com/jmoiron/sqlx.(*DB).Get(...)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:328
frontiir.com/eightcat/dbm/credit.NewManager(0x0, 0xdbed5e, 0xc, 0x7c)
        /root/eightcat/dbm/credit/score_manager.go:70 +0x463
frontiir.com/eightcat/dbm/credit_test.TestMain(0xc0004b4a80)
        /root/eightcat/dbm/credit/credit_test.go:27 +0x90
main.main()
        _testmain.go:48 +0x135
FAIL    frontiir.com/eightcat/dbm/credit        0.460s
time="2021-10-21T17:17:49Z" level=info msg="Loading module - dummybill.so"
time="2021-10-21T17:17:49Z" level=info msg="Loading module - dummyhsm.so"
time="2021-10-21T17:17:49Z" level=info msg="Loading module - dummyreport.so"
time="2021-10-21T17:17:49Z" level=info msg="Loading module - kafkareport.so"
time="2021-10-21T17:17:49Z" level=info msg="Loading module - mnetbill.so"
2021-10-21 17:17:50 [INFO] Using queue broker - redis://localhost:6379/3
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xe15ef9]

goroutine 1 [running]:
github.com/jmoiron/sqlx.(*DB).Queryx(0x0, 0xc000832360, 0x26, 0x0, 0x0, 0x0, 0xc000832360, 0xc00083236e, 0xc000a678a8)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:353 +0x29
github.com/jmoiron/sqlx.Select(0x1f6b520, 0x0, 0x17feca0, 0xc0000acaa0, 0xc000832360, 0x26, 0x0, 0x0, 0x0, 0x0, ...)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:670 +0x95
github.com/jmoiron/sqlx.(*DB).Select(...)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:321
frontiir.com/eightcat/dbm/promo.(*Manager).ReloadPromotionsFromDB(0xc00047a480, 0x1a8b091, 0xf)
        /root/eightcat/dbm/promo/promotion_manager.go:84 +0xf1
frontiir.com/eightcat/dbm/promo.NewManager(...)
        /root/eightcat/dbm/promo/promotion_manager.go:62
frontiir.com/eightcat/dbm/incentive_test.TestMain(0xc000592680)
        /root/eightcat/dbm/incentive/incentive_test.go:30 +0x1bf
main.main()
        _testmain.go:58 +0x135
FAIL    frontiir.com/eightcat/dbm/incentive     0.442s
time="2021-10-21T17:17:53Z" level=info msg="Loading module - dummybill.so"
time="2021-10-21T17:17:53Z" level=info msg="Loading module - dummyhsm.so"
time="2021-10-21T17:17:53Z" level=info msg="Loading module - dummyreport.so"
time="2021-10-21T17:17:53Z" level=info msg="Loading module - kafkareport.so"
time="2021-10-21T17:17:53Z" level=info msg="Loading module - mnetbill.so"
2021-10-21 17:17:54 [INFO] Using queue broker - redis://localhost:6379/3
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x14cc239]

goroutine 1 [running]:
github.com/jmoiron/sqlx.(*DB).Queryx(0x0, 0xc000924c90, 0x22, 0x0, 0x0, 0x0, 0xc000924c90, 0xc000924c9e, 0xc000a4dbb0)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:353 +0x29
github.com/jmoiron/sqlx.Select(0x2079760, 0x0, 0x18ded00, 0xc000907e80, 0xc000924c90, 0x22, 0x0, 0x0, 0x0, 0x0, ...)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:670 +0x95
github.com/jmoiron/sqlx.(*DB).Select(...)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:321
frontiir.com/eightcat/dbm/merchant.(*ClientManager).ReloadClientsFromDB(0xc0006ce480, 0x1b9009d, 0xe)
        /root/eightcat/dbm/merchant/client_manager.go:155 +0xeb
frontiir.com/eightcat/dbm/merchant.NewClientManager(...)
        /root/eightcat/dbm/merchant/client_manager.go:57
frontiir.com/eightcat/dbm/merchant.NewManager(0x0, 0xc0006ce280, 0xc00039de00, 0x1b9009d, 0xe, 0x2059540)
        /root/eightcat/dbm/merchant/merchant_manager.go:23 +0x111
frontiir.com/eightcat/dbm/merchant_test.TestMain(0xc0003e0200)
        /root/eightcat/dbm/merchant/merchant_test.go:31 +0xdf
main.main()
        _testmain.go:50 +0x135
FAIL    frontiir.com/eightcat/dbm/merchant      0.709s
ok      frontiir.com/eightcat/dbm/messaging     (cached)
?       frontiir.com/eightcat/dbm/notification  [no test files]
time="2021-10-21T17:17:57Z" level=info msg="Loading module - dummybill.so"
time="2021-10-21T17:17:57Z" level=info msg="Loading module - dummyhsm.so"
time="2021-10-21T17:17:57Z" level=info msg="Loading module - dummyreport.so"
time="2021-10-21T17:17:57Z" level=info msg="Loading module - kafkareport.so"
time="2021-10-21T17:17:57Z" level=info msg="Loading module - mnetbill.so"
2021-10-21 17:17:57 [INFO] Using queue broker - redis://localhost:6379/3
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xdf5479]

goroutine 1 [running]:
github.com/jmoiron/sqlx.(*DB).Queryx(0x0, 0xc00044a330, 0x22, 0x0, 0x0, 0x0, 0xc00044a330, 0xc00044a33e, 0xc0009398c0)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:353 +0x29
github.com/jmoiron/sqlx.Select(0x1f54ae0, 0x0, 0x17ebda0, 0xc00029d340, 0xc00044a330, 0x22, 0x0, 0x0, 0x0, 0x0, ...)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:670 +0x95
github.com/jmoiron/sqlx.(*DB).Select(...)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:321
frontiir.com/eightcat/dbm/promo.(*Manager).ReloadPromotionsFromDB(0xc00007c780, 0x1a718b2, 0xb)
        /root/eightcat/dbm/promo/promotion_manager.go:84 +0xf1
frontiir.com/eightcat/dbm/promo.NewManager(...)
        /root/eightcat/dbm/promo/promotion_manager.go:62
frontiir.com/eightcat/dbm/promo_test.TestMain(0xc0006e3180)
        /root/eightcat/dbm/promo/promotion_test.go:27 +0x1ad
main.main()
        _testmain.go:66 +0x135
FAIL    frontiir.com/eightcat/dbm/promo 0.413s
?       frontiir.com/eightcat/dbm/report        [no test files]
time="2021-10-21T17:17:57Z" level=info msg="Loading module - dummybill.so"
time="2021-10-21T17:17:57Z" level=info msg="Loading module - dummyhsm.so"
time="2021-10-21T17:17:57Z" level=info msg="Loading module - dummyreport.so"
time="2021-10-21T17:17:57Z" level=info msg="Loading module - kafkareport.so"
time="2021-10-21T17:17:57Z" level=info msg="Loading module - mnetbill.so"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xc19587]

goroutine 1 [running]:
frontiir.com/eightcat/dbm/reseller.NewManager(0x0, 0xdbecee, 0xe, 0x7c)
        /root/eightcat/dbm/reseller/reseller_manager.go:49 +0x37
frontiir.com/eightcat/dbm/reseller_test.TestMain(0xc00041a980)
        /root/eightcat/dbm/reseller/reseller_test.go:26 +0x90
main.main()
        _testmain.go:46 +0x135
FAIL    frontiir.com/eightcat/dbm/reseller      0.391s
time="2021-10-21T17:18:03Z" level=info msg="Loading module - dummybill.so"
time="2021-10-21T17:18:03Z" level=info msg="Loading module - dummyhsm.so"
time="2021-10-21T17:18:03Z" level=info msg="Loading module - dummyreport.so"
time="2021-10-21T17:18:03Z" level=info msg="Loading module - kafkareport.so"
time="2021-10-21T17:18:04Z" level=info msg="Loading module - mnetbill.so"
2021-10-21 17:18:04 [INFO] Using queue broker - redis://localhost:6379/3
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1437705]

goroutine 1 [running]:
github.com/jmoiron/sqlx.(*DB).Exec(0x0, 0xc0008c22d0, 0x27, 0x0, 0x0, 0x0, 0x2, 0x2, 0xc0008c22d0, 0x27)
        <autogenerated>:1 +0x5
github.com/jmoiron/sqlx.MustExec(...)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:716
github.com/jmoiron/sqlx.(*DB).MustExec(0x0, 0xc0008c22d0, 0x27, 0x0, 0x0, 0x0, 0x27, 0xc00091dee8)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:370 +0x70
frontiir.com/eightcat/dbm/task.(*ResultBackend).TearDown(...)
        /root/eightcat/dbm/task/machinery_backend.go:100
frontiir.com/eightcat/dbm/task.(*Manager).TearDown(...)
        /root/eightcat/dbm/task/task_manager.go:183
frontiir.com/eightcat/dbm/task_test.TestMain(0xc00085e380)
        /root/eightcat/dbm/task/task_test.go:27 +0x11d
main.main()
        _testmain.go:46 +0x135
FAIL    frontiir.com/eightcat/dbm/task  0.382s
time="2021-10-21T17:18:00Z" level=info msg="Loading module - dummybill.so"
time="2021-10-21T17:18:00Z" level=info msg="Loading module - dummyhsm.so"
time="2021-10-21T17:18:01Z" level=info msg="Loading module - dummyreport.so"
time="2021-10-21T17:18:01Z" level=info msg="Loading module - kafkareport.so"
time="2021-10-21T17:18:01Z" level=info msg="Loading module - mnetbill.so"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa1f535]

goroutine 1 [running]:
github.com/jmoiron/sqlx.(*DB).Exec(0x0, 0xc000406030, 0x27, 0x0, 0x0, 0x0, 0x2, 0x2, 0xc000406030, 0x27)
        <autogenerated>:1 +0x5
github.com/jmoiron/sqlx.MustExec(...)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:716
github.com/jmoiron/sqlx.(*DB).MustExec(0x0, 0xc000406030, 0x27, 0x0, 0x0, 0x0, 0x27, 0x79b7a9)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:370 +0x70
frontiir.com/eightcat/dbm/topup.(*Manager).TearDown(...)
        /root/eightcat/dbm/topup/voucher_manager.go:68
frontiir.com/eightcat/dbm/topup_test.TestMain(0xc000458700)
        /root/eightcat/dbm/topup/voucher_test.go:27 +0x19a
main.main()
        _testmain.go:56 +0x135
FAIL    frontiir.com/eightcat/dbm/topup 0.518s
time="2021-10-21T17:18:08Z" level=info msg="Loading module - dummybill.so"
time="2021-10-21T17:18:08Z" level=info msg="Loading module - dummyhsm.so"
time="2021-10-21T17:18:08Z" level=info msg="Loading module - dummyreport.so"
time="2021-10-21T17:18:08Z" level=info msg="Loading module - kafkareport.so"
time="2021-10-21T17:18:08Z" level=info msg="Loading module - mnetbill.so"
2021-10-21 17:18:08 [INFO] Using queue broker - redis://localhost:6379/3
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x102e079]

goroutine 1 [running]:
github.com/jmoiron/sqlx.(*DB).QueryRowx(0x0, 0xc000644050, 0x50, 0xc0003f2be0, 0x2, 0x2, 0x0)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:363 +0x29
github.com/jmoiron/sqlx.Get(0x209f5e0, 0x0, 0x18d3d60, 0xc000367ed0, 0xc000644050, 0x50, 0xc0003f2be0, 0x2, 0x2, 0x176ccc0, ...)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:685 +0x6d
github.com/jmoiron/sqlx.(*DB).Get(...)
        /root/go/pkg/mod/github.com/jmoiron/sqlx@v1.2.0/sqlx.go:328
frontiir.com/eightcat/dbm/transaction.NewLimitManager(0x0, 0xc00007a0c0, 0x1bb4ae8, 0x11, 0x0)
        /root/eightcat/dbm/transaction/transaction_limit_manager.go:51 +0x39f
frontiir.com/eightcat/dbm/transaction.NewManager(...)
        /root/eightcat/dbm/transaction/transaction_manager.go:59
frontiir.com/eightcat/dbm/transaction_test.TestMain(0xc00029be80)
        /root/eightcat/dbm/transaction/transaction_test.go:34 +0xfc
main.main()
        _testmain.go:70 +0x135
FAIL    frontiir.com/eightcat/dbm/transaction   0.471s
ok      frontiir.com/eightcat/dbm/transaction/types     (cached)
time="2021-10-21T17:18:11Z" level=info msg="Loading module - dummybill.so"
time="2021-10-21T17:18:11Z" level=info msg="Loading module - dummyhsm.so"
time="2021-10-21T17:18:11Z" level=info msg="Loading module - dummyreport.so"
time="2021-10-21T17:18:11Z" level=info msg="Loading module - kafkareport.so"
time="2021-10-21T17:18:11Z" level=info msg="Loading module - mnetbill.so"
panic: Error 1049: Unknown database 'eightcat'

goroutine 1 [running]:
frontiir.com/eightcat/dbm.NewTestDatabaseManager(0xc000319050, 0x1, 0x1, 0x18)
        /root/eightcat/dbm/dbm.go:232 +0x3df
frontiir.com/eightcat/dbm/wallet_test.init()
        /root/eightcat/dbm/wallet/wallet_test.go:19 +0x73
FAIL    frontiir.com/eightcat/dbm/wallet        0.339s
ok      frontiir.com/eightcat/dbm/wallet/types  (cached)
FAIL
Editor is loading...