Skip to content

Commit 543f580

Browse files
committed
test(database): update immutable testdata w/ first 200 chunks from preview
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
1 parent 8dab78b commit 543f580

File tree

607 files changed

+6
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

607 files changed

+6
-2
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ golines:
4343
test: mod-tidy
4444
go test -v -race ./...
4545

46+
test-load:
47+
rm -rf .dingo
48+
go run ./cmd/dingo load database/immutable/testdata
49+
4650
# Build our program binaries
4751
# Depends on GO_FILES to determine when rebuild is needed
4852
$(BINARIES): mod-tidy $(GO_FILES)

database/immutable/immutable_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ const (
2727

2828
func TestGetTip(t *testing.T) {
2929
// These expected values correspond to the last block in our test data
30-
var expectedSlot uint64 = 38426380
31-
expectedHash := "7ada6ed78f6caa499370da6548b143c59320f5e5283e5e80e202a994ba7bfebf"
30+
var expectedSlot uint64 = 863996
31+
expectedHash := "f47eb039637ba8da866d5a400e81abe468833a158802a6edd708c0559240fc48"
3232
imm, err := immutable.New(testDataDir)
3333
if err != nil {
3434
t.Fatalf("unexpected error: %s", err)
214 KB
Binary file not shown.
16.9 KB
Binary file not shown.
11.8 KB
Binary file not shown.
212 KB
Binary file not shown.
16.9 KB
Binary file not shown.
11.8 KB
Binary file not shown.
212 KB
Binary file not shown.
16.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)