lumen icon indicating copy to clipboard operation
lumen copied to clipboard

TestDex failing

Open nikhilsaraf opened this issue 7 years ago • 2 comments

when running make test I get the following error

--- FAIL: TestDex (224.06s)
    	lumen_test.go:54: (pay 1 EUR --to bob --from mo --with XLM --max 20) wrong output: want , got error
    	lumen_test.go:54: (balance bob EUR) wrong output: want 100006.0000000, got 100005.0000000

nikhilsaraf avatar Aug 16 '18 19:08 nikhilsaraf

this is the command that shows up before some logs that are printed out:

lumen pay 1 EUR --to bob --from mo --with XLM --max 20 --path USD,EUR -v

nikhilsaraf avatar Aug 16 '18 19:08 nikhilsaraf

Thanks for notifying @nikhilsaraf.

Looks like something changed in the HTTP API. I'll dig in.

$ lumen pay 1 EUR --to bob --from mo --with XLM --max 20 --path USD,EUR -v
DEBU[0201] LUMEN_ENV not set                             type=setup
DEBU[0201] using storage driver file with /Users/mo/.lumen-data.json  type=setup
DEBU[0201] getting test:vars:config:network              method=GetVar type=cli
DEBU[0201] got val: test (expires: false, expires_on: 2018-08-17 10:26:49.77926642 -0400 EDT m=+0.006532496)  key="test:vars:config:network" method=get type=filestore
DEBU[0201] getting test:asset:EUR:code                   method=GetVar type=cli
DEBU[0201] got val: EUR (expires: false, expires_on: 2018-08-17 10:27:20.308809587 -0400 EDT m=+30.535323877)  key="test:asset:EUR:code" method=get type=filestore
DEBU[0201] getting test:asset:EUR:issuer                 method=GetVar type=cli
DEBU[0201] got val: GB27HOYPH5M5CTC6X6V2JASFO5KJ4FPQCMR4BI32GXJ4MOZGRANK6AMO (expires: false, expires_on: 2018-08-17 10:27:20.308163835 -0400 EDT m=+30.534678141)  key="test:asset:EUR:issuer" method=get type=filestore
DEBU[0201] getting test:asset:EUR:type                   method=GetVar type=cli
DEBU[0201] got val: credit_alphanum4 (expires: false, expires_on: 2018-08-17 10:27:20.309278596 -0400 EDT m=+30.535792874)  key="test:asset:EUR:type" method=get type=filestore
DEBU[0201] got asset: &{Code:EUR Issuer:GB27HOYPH5M5CTC6X6V2JASFO5KJ4FPQCMR4BI32GXJ4MOZGRANK6AMO Type:credit_alphanum4} 
DEBU[0201] getting test:account:mo:seed                  method=GetVar type=cli
DEBU[0201] got val: SD57C5VR4JFYA5VUMC6OTZNQR5XADPPNNTMGOGUKNHC3VWULDB5DCCWH (expires: false, expires_on: 2018-08-17 10:26:49.781621434 -0400 EDT m=+0.008887452)  key="test:account:mo:seed" method=get type=filestore
DEBU[0201] getting test:account:bob:address              method=GetVar type=cli
DEBU[0201] got val: GAKCDNLECOWA2G47L7TJQIPPRE6S2OYOCIKQXHZFZOA2PHCEQNLONVDA (expires: false, expires_on: 2018-08-17 10:27:00.311700732 -0400 EDT m=+10.538707442)  key="test:account:bob:address" method=get type=filestore
DEBU[0201] getting test:asset:XLM:code                   method=GetVar type=cli
DEBU[0201] got val: XLM (expires: false, expires_on: 2018-08-17 10:27:20.302299882 -0400 EDT m=+30.528814332)  key="test:asset:XLM:code" method=get type=filestore
DEBU[0201] getting test:asset:XLM:issuer                 method=GetVar type=cli
DEBU[0201] got val: GB27HOYPH5M5CTC6X6V2JASFO5KJ4FPQCMR4BI32GXJ4MOZGRANK6AMO (expires: false, expires_on: 2018-08-17 10:27:20.298575396 -0400 EDT m=+30.525089938)  key="test:asset:XLM:issuer" method=get type=filestore
DEBU[0201] getting test:asset:XLM:type                   method=GetVar type=cli
DEBU[0201] got val: native (expires: false, expires_on: 2018-08-17 10:27:20.303020876 -0400 EDT m=+30.529535309)  key="test:asset:XLM:type" method=get type=filestore
DEBU[0201] got asset: &{Code:XLM Issuer: Type:native}   
DEBU[0201] path payment with XLM (max 20) through [USD EUR]  cmd=pay
DEBU[0201] getting test:asset:USD:code                   method=GetVar type=cli
DEBU[0201] got val: USD (expires: false, expires_on: 2018-08-17 10:27:20.305758114 -0400 EDT m=+30.532272479)  key="test:asset:USD:code" method=get type=filestore
DEBU[0201] getting test:asset:USD:issuer                 method=GetVar type=cli
DEBU[0201] got val: GB27HOYPH5M5CTC6X6V2JASFO5KJ4FPQCMR4BI32GXJ4MOZGRANK6AMO (expires: false, expires_on: 2018-08-17 10:27:20.304863327 -0400 EDT m=+30.531377714)  key="test:asset:USD:issuer" method=get type=filestore
DEBU[0201] getting test:asset:USD:type                   method=GetVar type=cli
DEBU[0201] got val: credit_alphanum4 (expires: false, expires_on: 2018-08-17 10:27:20.306472707 -0400 EDT m=+30.532987055)  key="test:asset:USD:type" method=get type=filestore
DEBU[0201] got asset: &{Code:USD Issuer:GB27HOYPH5M5CTC6X6V2JASFO5KJ4FPQCMR4BI32GXJ4MOZGRANK6AMO Type:credit_alphanum4} 
DEBU[0201] getting test:asset:EUR:code                   method=GetVar type=cli
DEBU[0201] got val: EUR (expires: false, expires_on: 2018-08-17 10:27:20.308809587 -0400 EDT m=+30.535323877)  key="test:asset:EUR:code" method=get type=filestore
DEBU[0201] getting test:asset:EUR:issuer                 method=GetVar type=cli
DEBU[0201] got val: GB27HOYPH5M5CTC6X6V2JASFO5KJ4FPQCMR4BI32GXJ4MOZGRANK6AMO (expires: false, expires_on: 2018-08-17 10:27:20.308163835 -0400 EDT m=+30.534678141)  key="test:asset:EUR:issuer" method=get type=filestore
DEBU[0201] getting test:asset:EUR:type                   method=GetVar type=cli
DEBU[0201] got val: credit_alphanum4 (expires: false, expires_on: 2018-08-17 10:27:20.309278596 -0400 EDT m=+30.535792874)  key="test:asset:EUR:type" method=get type=filestore
DEBU[0201] got asset: &{Code:EUR Issuer:GB27HOYPH5M5CTC6X6V2JASFO5KJ4FPQCMR4BI32GXJ4MOZGRANK6AMO Type:credit_alphanum4} 
DEBU[0201] paying 1 EUR/GB27HOYPH5M5CTC6X6V2JASFO5KJ4FPQCMR4BI32GXJ4MOZGRANK6AMO from SD57C5VR4JFYA5VUMC6OTZNQR5XADPPNNTMGOGUKNHC3VWULDB5DCCWH to GAKCDNLECOWA2G47L7TJQIPPRE6S2OYOCIKQXHZFZOA2PHCEQNLONVDA, opts: &{ctx:<nil> handlers:map[] hasFee:false fee:0 hasTimeBounds:false minTimeBound:{wall:0 ext:0 loc:<nil>} maxTimeBound:{wall:0 ext:0 loc:<nil>} memoType:0 memoText: memoID:0 memoHash:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] skipSignatures:false signerSeeds:[] hasCursor:false cursor: hasLimit:false limit:0 sortDescending:false passiveOffer:false sourceAddress: sendAsset:0x1995cc0 maxAmount:20 path:[0xc42001e570 0xc42001e780] isMultiOp:false multiOpSource:}  cmd=pay
DEBU[0201] path payment: deposit EUR with XLM            lib=microstellar method=Pay
DEBU[0201] path payment: through USD                     lib=microstellar method=Pay
DEBU[0201] path payment: through EUR                     lib=microstellar method=Pay
DEBU[0201] signing transaction, seq: 45480774496944137   lib=microstellar method=Tx.Sign
DEBU[0201] signed transaction, payload: AAAAAHsWrKTXKh9Gtcn1M0vVyioGJrwwEIeK4z17hBPeJEf+AAAAZAChlIYAAAAJAAAAAAAAAAAAAAABAAAAAAAAAAIAAAAAAAAAAAvrwgAAAAAAFCG1ZBOsDRufX+aYIe+JPS07DhIVC58ly4GnnESDVuYAAAABRVVSAAAAAAB187sPP1nRTF6/q6SCRXdUnhXwEyPAo3o108Y7JogarwAAAAAAmJaAAAAAAgAAAAFVU0QAAAAAAHXzuw8/WdFMXr+rpIJFd1SeFfATI8CjejXTxjsmiBqvAAAAAUVVUgAAAAAAdfO7Dz9Z0Uxev6ukgkV3VJ4V8BMjwKN6NdPGOyaIGq8AAAAAAAAAAd4kR/4AAABAwfqaI1XLDeGzTVDLx+5b7LcayOz51Ncvjp6gzQ/8ZBgBYyyLqRgiKg3TF5oQ5epE9QhnWsPrXd13aUVv7aoWCw==  lib=microstellar method=Tx.Sign
DEBU[0201] submitting transaction to network test        lib=microstellar method=Tx.Submit
DEBU[0206] transaction submitted to ledger 10589358 with hash 5bf788a3dafd8ef741daa47fb32259076bc13b912d367524280e10a6e696bc81  lib=microstellar method=Tx.Submit

DEBU[0206] cleaning up temp file: /var/folders/bs/nj8kp2313pn0blcr12tzs1ph0000gn/T/example546295401/lumen-integration-test.json 
--- FAIL: TestDex (206.34s)
        lumen_test.go:54: (pay 1 EUR --to bob --from mo --with XLM --max 20) wrong output: want , got error
        lumen_test.go:54: (balance bob EUR) wrong output: want 100006.0000000, got 100005.0000000
FAIL

0xfe avatar Aug 17 '18 14:08 0xfe