Skip to content

Go tests failing in hermetic environment #3

@kloenk

Description

@kloenk

Running the go tests in a nix builder which is a sandbox makes them fail:

running tests
=== RUN   Test_readConfig_noPath_notExists
    config_test.go:22:
                Error Trace:    /private/tmp/nix-build-antares-.drv-0/source/pkg/config/config_test.go:22
                                                        /private/tmp/nix-build-antares-.drv-0/source/pkg/config/config_test.go:38
                Error:          Received unexpected error:
                                could not create any of the following paths: /homeless-shelter/Library/Application Support/antares, /homeless-shelter/Library/Preferences/antares, /Library/Application Support/antares, /Library/Preferences/
antares
                Test:           Test_readConfig_noPath_notExists
--- FAIL: Test_readConfig_noPath_notExists (0.00s)
=== RUN   Test_readConfig_noPath_exists
    config_test.go:22:
                Error Trace:    /private/tmp/nix-build-antares-.drv-0/source/pkg/config/config_test.go:22
                                                        /private/tmp/nix-build-antares-.drv-0/source/pkg/config/config_test.go:48
                Error:          Received unexpected error:
                                could not create any of the following paths: /homeless-shelter/Library/Application Support/antares, /homeless-shelter/Library/Preferences/antares, /Library/Application Support/antares, /Library/Preferences/
antares
                Test:           Test_readConfig_noPath_exists
--- FAIL: Test_readConfig_noPath_exists (0.00s)
=== RUN   TestConfig_Save
    config_test.go:22:
                Error Trace:    /private/tmp/nix-build-antares-.drv-0/source/pkg/config/config_test.go:22
                                                        /private/tmp/nix-build-antares-.drv-0/source/pkg/config/config_test.go:60
                Error:          Received unexpected error:
                                could not create any of the following paths: /homeless-shelter/Library/Application Support/antares, /homeless-shelter/Library/Preferences/antares, /Library/Application Support/antares, /Library/Preferences/
antares
                Test:           TestConfig_Save
--- FAIL: TestConfig_Save (0.00s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions