Unverified Commit 50533883 authored by Kenichi Kamiya's avatar Kenichi Kamiya
Browse files

hugo: skip flaky server tests

parent 262c5698
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -23,10 +23,18 @@ buildGoModule rec {

  vendorHash = "sha256-swcj1JxYoRqKscu/IC0uiAATp4AXN0aANWkSq/mJsyc=";

  checkFlags = [
  checkFlags =
    let
      skippedTestPrefixes = [
        # Workaround for "failed to load modules"
    "-skip=TestCommands/mod"
        "TestCommands/mod"
        # Server tests are flaky, at least in x86_64-darwin. See #368072
        # We can try testing again after updating the `httpget` helper
        # ref: https://github.com/gohugoio/hugo/blob/v0.140.1/main_test.go#L220-L233
        "TestCommands/server"
      ];
    in
    [ "-skip=^${builtins.concatStringsSep "|^" skippedTestPrefixes}" ];

  proxyVendor = true;