Skip to content

Commit

Permalink
gotosocial: skip more flakey tests
Browse files Browse the repository at this point in the history
golang 1.21.8 introduced some minor test suite breakages in gotosocial. Skip
these tests for now. See: superseriousbusiness/gotosocial#2760

(cherry picked from commit 3fe3493)
  • Loading branch information
blakesmith authored and github-actions[bot] committed Mar 18, 2024
1 parent ff46bec commit 5a2d302
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions pkgs/servers/gotosocial/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,18 @@ buildGoModule rec {
# tests are working only on x86_64-linux
doCheck = stdenv.isLinux && stdenv.isx86_64;

# flaky test
checkFlags = [ "-skip=^TestPage/minID,_maxID_and_limit_set$" ];
checkFlags =
let
# flaky / broken tests
skippedTests = [
# See: https://github.com/superseriousbusiness/gotosocial/issues/2651
"TestPage/minID,_maxID_and_limit_set"
# See: https://github.com/superseriousbusiness/gotosocial/pull/2760. Stop skipping
# this test when fixed for go 1.21.8 and above
"TestValidationTestSuite/TestValidateEmail"
];
in
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];

passthru.tests.gotosocial = nixosTests.gotosocial;

Expand Down

0 comments on commit 5a2d302

Please sign in to comment.