From 4b8b46a8225c7799fad5d7bd95f8ccfad69ce02f Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Tue, 18 Oct 2022 14:12:57 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Fix=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/unit/Testables/TestableConfigurationTest.swift | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/unit/Testables/TestableConfigurationTest.swift b/tests/unit/Testables/TestableConfigurationTest.swift index e31e54f..9398783 100644 --- a/tests/unit/Testables/TestableConfigurationTest.swift +++ b/tests/unit/Testables/TestableConfigurationTest.swift @@ -11,12 +11,10 @@ import XCTest class TestableConfigurationTest: XCTestCase { func test_configuration_can_be_saved_as_json() async { var configuration = TestableConfigurations.working + try! configuration.toJson().write(toFile: "/tmp/pmc_working.json", atomically: true, encoding: .utf8) + configuration.filesystem["/opt/homebrew/bin/php"] = nil - - let json = configuration.toJson() - - try! json.write(toFile: "/tmp/pmc_working.json", atomically: true, encoding: .utf8) - try! json.write(toFile: "/tmp/pmc_broken.json", atomically: true, encoding: .utf8) + try! configuration.toJson().write(toFile: "/tmp/pmc_broken.json", atomically: true, encoding: .utf8) } }