all: Grand test refactor (fixes #8779, fixes #8799)

This fixes various test issues with Go 1.20.

- Most tests rewritten to use fakefs where possible
- Some tests that were already skipped, or dubious (invasive,
  unmaintainable, unclear what they even tested) have been removed
- Some actual code rewritten to better support testing in fakefs

Co-authored-by: Eric P <eric@kastelo.net>
This commit is contained in:
Jakob Borg
2023-05-09 10:01:57 +00:00
co-authored by Eric P
parent ddce692f72
commit 1103a27337
54 changed files with 1133 additions and 1594 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ on:
env:
# The go version to use for builds.
GO_VERSION: "1.19.6"
GO_VERSION: "^1.20.3"
# Optimize compatibility on the slow archictures.
GO386: softfloat
@@ -42,7 +42,7 @@ jobs:
runner: ["windows-latest", "ubuntu-latest", "macos-latest"]
# The oldest version in this list should match what we have in our go.mod.
# Variables don't seem to be supported here, or we could have done something nice.
go: ["1.19"] # Skip Go 1.20 for now, https://github.com/syncthing/syncthing/issues/8799
go: ["1.19", "1.20"]
runs-on: ${{ matrix.runner }}
steps:
- name: Set git to use LF