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

Fix TestVMShutdownWhileSyncing #323

Merged
merged 2 commits into from
Sep 11, 2023
Merged

Conversation

darioush
Copy link
Collaborator

@darioush darioush commented Sep 7, 2023

Why this should be merged

  • Fixes a flake in TestVMShutdownWhileSyncing
  • Cleans up some test code
  • Adds additional error checking
  • Removes unneeded goroutine in AppSend (still needed for responses)

How this works

Re-opens the "chaindb" since it may be closed in the vm.Shutdown()
Alternatively we could remove the check for synced heights in case the sync errors. Either is fine by me.

How this was tested

CI, running multiple times locally

@darioush darioush marked this pull request as ready for review September 7, 2023 00:59
@aaronbuchwald
Copy link
Collaborator

Fixes #257

@aaronbuchwald aaronbuchwald merged commit 545b4f1 into master Sep 11, 2023
9 checks passed
@aaronbuchwald aaronbuchwald deleted the fix-TestVMShutdownWhileSyncing branch September 11, 2023 16:20
joshua-kim added a commit that referenced this pull request Sep 12, 2023
commit 0af3265
Author: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
Date:   Tue Sep 12 11:25:07 2023 -0400

    Update to 1.10.10-rc.2 (#328)

    * update to avalanchego 1.10.10-rc.2

    * nits

    * nit

commit 545b4f1
Author: Darioush Jalali <darioush.jalali@avalabs.org>
Date:   Mon Sep 11 09:20:23 2023 -0700

    Fix TestVMShutdownWhileSyncing (#323)

    * Fix TestVMShutdownWhileSyncing

    * fix

commit 347fe53
Author: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
Date:   Mon Sep 11 10:53:44 2023 -0400

    Fix hanging requests after Shutdown (#326)

    * fix requests hanging after shutdown

    * fix build

    ---------

    Signed-off-by: Stephen Buttolph <stephen@avalabs.org>
    Co-authored-by: Stephen Buttolph <stephen@avalabs.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants