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 e5b3215)
  • Loading branch information
blakesmith committed Mar 23, 2024
1 parent 318444c commit 646dbae
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 646dbae

Please sign in to comment.