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

Use MapDatastore for provider backend tests instead of leveldb #896

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

dennis-tra
Copy link
Contributor

@dennis-tra dennis-tra commented Sep 13, 2023

leveldb synchronization seems to behave differenlty on Windows vs. Linux/MacOS which lead to failing tests.

@dennis-tra dennis-tra changed the title enable logging tmp: enable logging - just here to run CI Sep 13, 2023
@dennis-tra dennis-tra marked this pull request as ready for review September 13, 2023 17:04
@dennis-tra dennis-tra changed the title tmp: enable logging - just here to run CI Use MapDatastore for provider backend tests instead of leveldb Sep 13, 2023
@@ -71,23 +70,13 @@ func TestProvidersBackend_GarbageCollection(t *testing.T) {
// advance clock half the validity time and check if record is still there
clk.Add(cfg.ProvideValidity / 2)

// sync datastore to have all put/deletes visible
err = b.datastore.Sync(ctx, ds.NewKey("/"))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dennis-tra dennis-tra merged commit f607a79 into v2-go121 Sep 13, 2023
8 checks passed
iand added a commit that referenced this pull request Sep 16, 2023
* v2: upgrade to go1.21

* Add uci config

* Use newer uci actions

* Use v2 working directory in actions

* Set go-version input in actions

* Set go-version input in actions

* Use go 1.20.8 in actions

* Use go 1.21.1 and relative working directory

* Try default working directory on job

* Remove uci.yaml which is not supported yet

* Try default working directory on job

* Try default working directory as input

* Restore uci.yaml

* Restore uci.yaml

* Use modified go-check

* Use modified go-test

* Fix go-test

* Fix go-test

* Fix go-test

* Restore libp2p 0.30.0

* go mod tidy

* Remove nil error return from DefaultConfig

* use mock clock for IPNS record generation (#894)

* Use MapDatastore for provider backend tests instead of leveldb (#896)

* revert some merge residuals

* style: minor coding clean up (#898)

* remove superfluous type conversion

* add tiny example test

* unexport type conversion helpers

* Target go language version 1.20 and add 1.20.8 to build matrix

* Target go language version 1.20 and add 1.20.8 to build matrix

* WIP

---------

Co-authored-by: Dennis Trautwein <git@dtrautwein.eu>
@dennis-tra dennis-tra deleted the v2-go121-fix-windows-2 branch September 18, 2023 13:43
@dennis-tra dennis-tra added the v2 All issues related to the v2 rewrite label Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2 All issues related to the v2 rewrite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants