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

Error Running Tests for Index #32

Open
allocgator opened this issue Sep 18, 2023 · 1 comment
Open

Error Running Tests for Index #32

allocgator opened this issue Sep 18, 2023 · 1 comment

Comments

@allocgator
Copy link

In chapter 3 "Write a Log Package", errors are thrown when running a test for index.

As of page 38, the directory structure of internal/log looks like:

internal/log
├── config.go
├── index.go
├── index_test.go
├── store.go
└── store_test.go

Running go test ./internal/log/... throws many errors

@allocgator allocgator changed the title Error Running Tests with for Index Error Running Tests for Index Sep 18, 2023
@wtran29
Copy link

wtran29 commented Jan 17, 2024

Yes, so I am running into this issue when running the test:

$ go test ./internal/log -v
=== RUN   TestIndex
    index_test.go:47: 
                Error Trace:    C:/Projects/proglog/internal/log/index_test.go:47
                Error:          Not equal:
                                expected: 0x1
                                actual  : 0x0
                Test:           TestIndex
--- FAIL: TestIndex (0.01s)

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

2 participants