Add some blockchain RPC handlers and DB fetching routines #55
|
@ -2,6 +2,7 @@ package server
|
||||||
I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history". I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe. I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history".
I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe.
Added sample data from lbry-sdk integration test. Reworked tests to match. Added sample data from lbry-sdk integration test. Reworked tests to match.
Are these tests not running in the ci? This isn't going to work when run in the ci. Are these tests not running in the ci? This isn't going to work when run in the ci.
So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good. So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
```
jsonrpc_blockchain_test.go:18: DB not found
--- SKIP: TestServerGetHeight (0.00s)
=== RUN TestGetChunk
jsonrpc_blockchain_test.go:48: DB not found
--- SKIP: TestGetChunk (0.00s)
=== RUN TestGetHeader
jsonrpc_blockchain_test.go:83: DB not found
--- SKIP: TestGetHeader (0.00s)
=== RUN TestGetBalance
jsonrpc_blockchain_test.go:115: DB not found
--- SKIP: TestGetBalance (0.00s)
=== RUN TestGetHistory
jsonrpc_blockchain_test.go:154: DB not found
--- SKIP: TestGetHistory (0.00s)
=== RUN TestListUnspent
jsonrpc_blockchain_test.go:193: DB not found
--- SKIP: TestListUnspent (0.00s)
```
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good.
I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history". I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe. I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history".
I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe.
Added sample data from lbry-sdk integration test. Reworked tests to match. Added sample data from lbry-sdk integration test. Reworked tests to match.
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"strconv"
|
||||||
Are these tests not running in the ci? This isn't going to work when run in the ci. Are these tests not running in the ci? This isn't going to work when run in the ci.
So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good. So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
```
jsonrpc_blockchain_test.go:18: DB not found
--- SKIP: TestServerGetHeight (0.00s)
=== RUN TestGetChunk
jsonrpc_blockchain_test.go:48: DB not found
--- SKIP: TestGetChunk (0.00s)
=== RUN TestGetHeader
jsonrpc_blockchain_test.go:83: DB not found
--- SKIP: TestGetHeader (0.00s)
=== RUN TestGetBalance
jsonrpc_blockchain_test.go:115: DB not found
--- SKIP: TestGetBalance (0.00s)
=== RUN TestGetHistory
jsonrpc_blockchain_test.go:154: DB not found
--- SKIP: TestGetHistory (0.00s)
=== RUN TestListUnspent
jsonrpc_blockchain_test.go:193: DB not found
--- SKIP: TestListUnspent (0.00s)
```
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good.
I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history". I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe. I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history".
I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe.
Added sample data from lbry-sdk integration test. Reworked tests to match. Added sample data from lbry-sdk integration test. Reworked tests to match.
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/lbryio/herald.go/db"
|
"github.com/lbryio/herald.go/db"
|
||||||
|
@ -10,6 +11,7 @@ import (
|
||||||
Are these tests not running in the ci? This isn't going to work when run in the ci. Are these tests not running in the ci? This isn't going to work when run in the ci.
So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good. So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
```
jsonrpc_blockchain_test.go:18: DB not found
--- SKIP: TestServerGetHeight (0.00s)
=== RUN TestGetChunk
jsonrpc_blockchain_test.go:48: DB not found
--- SKIP: TestGetChunk (0.00s)
=== RUN TestGetHeader
jsonrpc_blockchain_test.go:83: DB not found
--- SKIP: TestGetHeader (0.00s)
=== RUN TestGetBalance
jsonrpc_blockchain_test.go:115: DB not found
--- SKIP: TestGetBalance (0.00s)
=== RUN TestGetHistory
jsonrpc_blockchain_test.go:154: DB not found
--- SKIP: TestGetHistory (0.00s)
=== RUN TestListUnspent
jsonrpc_blockchain_test.go:193: DB not found
--- SKIP: TestListUnspent (0.00s)
```
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good.
I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history". I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe. I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history".
I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe.
Added sample data from lbry-sdk integration test. Reworked tests to match. Added sample data from lbry-sdk integration test. Reworked tests to match.
Are these tests not running in the ci? This isn't going to work when run in the ci. Are these tests not running in the ci? This isn't going to work when run in the ci.
So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good. So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
```
jsonrpc_blockchain_test.go:18: DB not found
--- SKIP: TestServerGetHeight (0.00s)
=== RUN TestGetChunk
jsonrpc_blockchain_test.go:48: DB not found
--- SKIP: TestGetChunk (0.00s)
=== RUN TestGetHeader
jsonrpc_blockchain_test.go:83: DB not found
--- SKIP: TestGetHeader (0.00s)
=== RUN TestGetBalance
jsonrpc_blockchain_test.go:115: DB not found
--- SKIP: TestGetBalance (0.00s)
=== RUN TestGetHistory
jsonrpc_blockchain_test.go:154: DB not found
--- SKIP: TestGetHistory (0.00s)
=== RUN TestListUnspent
jsonrpc_blockchain_test.go:193: DB not found
--- SKIP: TestListUnspent (0.00s)
```
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good.
I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history". I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe. I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history".
I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe.
Added sample data from lbry-sdk integration test. Reworked tests to match. Added sample data from lbry-sdk integration test. Reworked tests to match.
|
|||||||
|
|
||||||
// Source: test_variety_of_transactions_and_longish_history (lbry-sdk/tests/integration/transactions)
|
// Source: test_variety_of_transactions_and_longish_history (lbry-sdk/tests/integration/transactions)
|
||||||
const regTestDBPath = "../testdata/test_variety_of_transactions/lbry-rocksdb"
|
const regTestDBPath = "../testdata/test_variety_of_transactions/lbry-rocksdb"
|
||||||
|
const regTestHeight = 502
|
||||||
Are these tests not running in the ci? This isn't going to work when run in the ci. Are these tests not running in the ci? This isn't going to work when run in the ci.
So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good. So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
```
jsonrpc_blockchain_test.go:18: DB not found
--- SKIP: TestServerGetHeight (0.00s)
=== RUN TestGetChunk
jsonrpc_blockchain_test.go:48: DB not found
--- SKIP: TestGetChunk (0.00s)
=== RUN TestGetHeader
jsonrpc_blockchain_test.go:83: DB not found
--- SKIP: TestGetHeader (0.00s)
=== RUN TestGetBalance
jsonrpc_blockchain_test.go:115: DB not found
--- SKIP: TestGetBalance (0.00s)
=== RUN TestGetHistory
jsonrpc_blockchain_test.go:154: DB not found
--- SKIP: TestGetHistory (0.00s)
=== RUN TestListUnspent
jsonrpc_blockchain_test.go:193: DB not found
--- SKIP: TestListUnspent (0.00s)
```
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good.
I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history". I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe. I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history".
I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe.
Added sample data from lbry-sdk integration test. Reworked tests to match. Added sample data from lbry-sdk integration test. Reworked tests to match.
|
|||||||
|
|
||||||
var regTestAddrs = [30]string{
|
var regTestAddrs = [30]string{
|
||||||
"mtgiQkd35xpx3TaZ4RBNirf3uSMQ8tXQ7z",
|
"mtgiQkd35xpx3TaZ4RBNirf3uSMQ8tXQ7z",
|
||||||
|
@ -72,7 +74,7 @@ func TestServerGetHeight(t *testing.T) {
|
||||||
Are these tests not running in the ci? This isn't going to work when run in the ci. Are these tests not running in the ci? This isn't going to work when run in the ci.
So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good. So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
```
jsonrpc_blockchain_test.go:18: DB not found
--- SKIP: TestServerGetHeight (0.00s)
=== RUN TestGetChunk
jsonrpc_blockchain_test.go:48: DB not found
--- SKIP: TestGetChunk (0.00s)
=== RUN TestGetHeader
jsonrpc_blockchain_test.go:83: DB not found
--- SKIP: TestGetHeader (0.00s)
=== RUN TestGetBalance
jsonrpc_blockchain_test.go:115: DB not found
--- SKIP: TestGetBalance (0.00s)
=== RUN TestGetHistory
jsonrpc_blockchain_test.go:154: DB not found
--- SKIP: TestGetHistory (0.00s)
=== RUN TestListUnspent
jsonrpc_blockchain_test.go:193: DB not found
--- SKIP: TestListUnspent (0.00s)
```
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good.
I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history". I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe. I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history".
I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe.
Added sample data from lbry-sdk integration test. Reworked tests to match. Added sample data from lbry-sdk integration test. Reworked tests to match.
Are these tests not running in the ci? This isn't going to work when run in the ci. Are these tests not running in the ci? This isn't going to work when run in the ci.
So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good. So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
```
jsonrpc_blockchain_test.go:18: DB not found
--- SKIP: TestServerGetHeight (0.00s)
=== RUN TestGetChunk
jsonrpc_blockchain_test.go:48: DB not found
--- SKIP: TestGetChunk (0.00s)
=== RUN TestGetHeader
jsonrpc_blockchain_test.go:83: DB not found
--- SKIP: TestGetHeader (0.00s)
=== RUN TestGetBalance
jsonrpc_blockchain_test.go:115: DB not found
--- SKIP: TestGetBalance (0.00s)
=== RUN TestGetHistory
jsonrpc_blockchain_test.go:154: DB not found
--- SKIP: TestGetHistory (0.00s)
=== RUN TestListUnspent
jsonrpc_blockchain_test.go:193: DB not found
--- SKIP: TestListUnspent (0.00s)
```
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good.
I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history". I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe. I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history".
I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe.
Added sample data from lbry-sdk integration test. Reworked tests to match. Added sample data from lbry-sdk integration test. Reworked tests to match.
|
|||||||
t.Errorf("unmarshal err: %v", err)
|
t.Errorf("unmarshal err: %v", err)
|
||||||
}
|
}
|
||||||
t.Logf("resp: %v", string(marshalled))
|
t.Logf("resp: %v", string(marshalled))
|
||||||
if string(marshalled) != "500" {
|
if string(marshalled) != strconv.FormatInt(regTestHeight, 10) {
|
||||||
Are these tests not running in the ci? This isn't going to work when run in the ci. Are these tests not running in the ci? This isn't going to work when run in the ci.
So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good. So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
```
jsonrpc_blockchain_test.go:18: DB not found
--- SKIP: TestServerGetHeight (0.00s)
=== RUN TestGetChunk
jsonrpc_blockchain_test.go:48: DB not found
--- SKIP: TestGetChunk (0.00s)
=== RUN TestGetHeader
jsonrpc_blockchain_test.go:83: DB not found
--- SKIP: TestGetHeader (0.00s)
=== RUN TestGetBalance
jsonrpc_blockchain_test.go:115: DB not found
--- SKIP: TestGetBalance (0.00s)
=== RUN TestGetHistory
jsonrpc_blockchain_test.go:154: DB not found
--- SKIP: TestGetHistory (0.00s)
=== RUN TestListUnspent
jsonrpc_blockchain_test.go:193: DB not found
--- SKIP: TestListUnspent (0.00s)
```
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good.
I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history". I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe. I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history".
I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe.
Added sample data from lbry-sdk integration test. Reworked tests to match. Added sample data from lbry-sdk integration test. Reworked tests to match.
Are these tests not running in the ci? This isn't going to work when run in the ci. Are these tests not running in the ci? This isn't going to work when run in the ci.
So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good. So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
```
jsonrpc_blockchain_test.go:18: DB not found
--- SKIP: TestServerGetHeight (0.00s)
=== RUN TestGetChunk
jsonrpc_blockchain_test.go:48: DB not found
--- SKIP: TestGetChunk (0.00s)
=== RUN TestGetHeader
jsonrpc_blockchain_test.go:83: DB not found
--- SKIP: TestGetHeader (0.00s)
=== RUN TestGetBalance
jsonrpc_blockchain_test.go:115: DB not found
--- SKIP: TestGetBalance (0.00s)
=== RUN TestGetHistory
jsonrpc_blockchain_test.go:154: DB not found
--- SKIP: TestGetHistory (0.00s)
=== RUN TestListUnspent
jsonrpc_blockchain_test.go:193: DB not found
--- SKIP: TestListUnspent (0.00s)
```
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good.
I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history". I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe. I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history".
I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe.
Added sample data from lbry-sdk integration test. Reworked tests to match. Added sample data from lbry-sdk integration test. Reworked tests to match.
|
|||||||
t.Errorf("bad height: %v", string(marshalled))
|
t.Errorf("bad height: %v", string(marshalled))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -109,7 +111,7 @@ func TestGetChunk(t *testing.T) {
|
||||||
Are these tests not running in the ci? This isn't going to work when run in the ci. Are these tests not running in the ci? This isn't going to work when run in the ci.
So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good. So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
```
jsonrpc_blockchain_test.go:18: DB not found
--- SKIP: TestServerGetHeight (0.00s)
=== RUN TestGetChunk
jsonrpc_blockchain_test.go:48: DB not found
--- SKIP: TestGetChunk (0.00s)
=== RUN TestGetHeader
jsonrpc_blockchain_test.go:83: DB not found
--- SKIP: TestGetHeader (0.00s)
=== RUN TestGetBalance
jsonrpc_blockchain_test.go:115: DB not found
--- SKIP: TestGetBalance (0.00s)
=== RUN TestGetHistory
jsonrpc_blockchain_test.go:154: DB not found
--- SKIP: TestGetHistory (0.00s)
=== RUN TestListUnspent
jsonrpc_blockchain_test.go:193: DB not found
--- SKIP: TestListUnspent (0.00s)
```
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good.
I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history". I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe. I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history".
I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe.
Added sample data from lbry-sdk integration test. Reworked tests to match. Added sample data from lbry-sdk integration test. Reworked tests to match.
Are these tests not running in the ci? This isn't going to work when run in the ci. Are these tests not running in the ci? This isn't going to work when run in the ci.
So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good. So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
```
jsonrpc_blockchain_test.go:18: DB not found
--- SKIP: TestServerGetHeight (0.00s)
=== RUN TestGetChunk
jsonrpc_blockchain_test.go:48: DB not found
--- SKIP: TestGetChunk (0.00s)
=== RUN TestGetHeader
jsonrpc_blockchain_test.go:83: DB not found
--- SKIP: TestGetHeader (0.00s)
=== RUN TestGetBalance
jsonrpc_blockchain_test.go:115: DB not found
--- SKIP: TestGetBalance (0.00s)
=== RUN TestGetHistory
jsonrpc_blockchain_test.go:154: DB not found
--- SKIP: TestGetHistory (0.00s)
=== RUN TestListUnspent
jsonrpc_blockchain_test.go:193: DB not found
--- SKIP: TestListUnspent (0.00s)
```
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good.
I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history". I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe. I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history".
I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe.
Added sample data from lbry-sdk integration test. Reworked tests to match. Added sample data from lbry-sdk integration test. Reworked tests to match.
|
|||||||
t.Errorf("index: %v bad length: %v", index, len(*resp))
|
t.Errorf("index: %v bad length: %v", index, len(*resp))
|
||||||
}
|
}
|
||||||
case 5:
|
case 5:
|
||||||
if len(*resp) != 21*112*2 {
|
if len(*resp) != 23*112*2 {
|
||||||
Are these tests not running in the ci? This isn't going to work when run in the ci. Are these tests not running in the ci? This isn't going to work when run in the ci.
So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good. So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
```
jsonrpc_blockchain_test.go:18: DB not found
--- SKIP: TestServerGetHeight (0.00s)
=== RUN TestGetChunk
jsonrpc_blockchain_test.go:48: DB not found
--- SKIP: TestGetChunk (0.00s)
=== RUN TestGetHeader
jsonrpc_blockchain_test.go:83: DB not found
--- SKIP: TestGetHeader (0.00s)
=== RUN TestGetBalance
jsonrpc_blockchain_test.go:115: DB not found
--- SKIP: TestGetBalance (0.00s)
=== RUN TestGetHistory
jsonrpc_blockchain_test.go:154: DB not found
--- SKIP: TestGetHistory (0.00s)
=== RUN TestListUnspent
jsonrpc_blockchain_test.go:193: DB not found
--- SKIP: TestListUnspent (0.00s)
```
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good.
I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history". I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe. I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history".
I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe.
Added sample data from lbry-sdk integration test. Reworked tests to match. Added sample data from lbry-sdk integration test. Reworked tests to match.
Are these tests not running in the ci? This isn't going to work when run in the ci. Are these tests not running in the ci? This isn't going to work when run in the ci.
So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good. So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
```
jsonrpc_blockchain_test.go:18: DB not found
--- SKIP: TestServerGetHeight (0.00s)
=== RUN TestGetChunk
jsonrpc_blockchain_test.go:48: DB not found
--- SKIP: TestGetChunk (0.00s)
=== RUN TestGetHeader
jsonrpc_blockchain_test.go:83: DB not found
--- SKIP: TestGetHeader (0.00s)
=== RUN TestGetBalance
jsonrpc_blockchain_test.go:115: DB not found
--- SKIP: TestGetBalance (0.00s)
=== RUN TestGetHistory
jsonrpc_blockchain_test.go:154: DB not found
--- SKIP: TestGetHistory (0.00s)
=== RUN TestListUnspent
jsonrpc_blockchain_test.go:193: DB not found
--- SKIP: TestListUnspent (0.00s)
```
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good.
I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history". I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe. I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history".
I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe.
Added sample data from lbry-sdk integration test. Reworked tests to match. Added sample data from lbry-sdk integration test. Reworked tests to match.
|
|||||||
t.Errorf("index: %v bad length: %v", index, len(*resp))
|
t.Errorf("index: %v bad length: %v", index, len(*resp))
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
||||||
Are these tests not running in the ci? This isn't going to work when run in the ci. Are these tests not running in the ci? This isn't going to work when run in the ci.
So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good. So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
```
jsonrpc_blockchain_test.go:18: DB not found
--- SKIP: TestServerGetHeight (0.00s)
=== RUN TestGetChunk
jsonrpc_blockchain_test.go:48: DB not found
--- SKIP: TestGetChunk (0.00s)
=== RUN TestGetHeader
jsonrpc_blockchain_test.go:83: DB not found
--- SKIP: TestGetHeader (0.00s)
=== RUN TestGetBalance
jsonrpc_blockchain_test.go:115: DB not found
--- SKIP: TestGetBalance (0.00s)
=== RUN TestGetHistory
jsonrpc_blockchain_test.go:154: DB not found
--- SKIP: TestGetHistory (0.00s)
=== RUN TestListUnspent
jsonrpc_blockchain_test.go:193: DB not found
--- SKIP: TestListUnspent (0.00s)
```
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good.
I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history". I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe. I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history".
I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe.
Added sample data from lbry-sdk integration test. Reworked tests to match. Added sample data from lbry-sdk integration test. Reworked tests to match.
Are these tests not running in the ci? This isn't going to work when run in the ci. Are these tests not running in the ci? This isn't going to work when run in the ci.
So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good. So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
```
jsonrpc_blockchain_test.go:18: DB not found
--- SKIP: TestServerGetHeight (0.00s)
=== RUN TestGetChunk
jsonrpc_blockchain_test.go:48: DB not found
--- SKIP: TestGetChunk (0.00s)
=== RUN TestGetHeader
jsonrpc_blockchain_test.go:83: DB not found
--- SKIP: TestGetHeader (0.00s)
=== RUN TestGetBalance
jsonrpc_blockchain_test.go:115: DB not found
--- SKIP: TestGetBalance (0.00s)
=== RUN TestGetHistory
jsonrpc_blockchain_test.go:154: DB not found
--- SKIP: TestGetHistory (0.00s)
=== RUN TestListUnspent
jsonrpc_blockchain_test.go:193: DB not found
--- SKIP: TestListUnspent (0.00s)
```
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good.
I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history". I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe. I have a technique to get test data from lbry-sdk test "test_variety_of_transactions_and_longish_history".
I'm waiting for the EffectiveAmount & RepostedCount to be stabilized. Then I will regenerate from that version of scribe.
Added sample data from lbry-sdk integration test. Reworked tests to match. Added sample data from lbry-sdk integration test. Reworked tests to match.
|
Are these tests not running in the ci? This isn't going to work when run in the ci.
So I checked out your branch and ran the tests, it all passes, but it skips these tests because the DB isn't there.
let's get figure out a way to get some test data in there, or at least download it or something so we can run those tests, and then this looks good.