From caabb1d722f7633730557edebbb2dc48098ec5f8 Mon Sep 17 00:00:00 2001 From: Bart Jaskulski Date: Fri, 20 May 2022 00:05:59 +0200 Subject: [PATCH] Fix test failing in Windows environment --- test/Unit/Locator/GitRepositoryDirLocatorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Unit/Locator/GitRepositoryDirLocatorTest.php b/test/Unit/Locator/GitRepositoryDirLocatorTest.php index f49caa92..d30e1629 100644 --- a/test/Unit/Locator/GitRepositoryDirLocatorTest.php +++ b/test/Unit/Locator/GitRepositoryDirLocatorTest.php @@ -73,6 +73,6 @@ public function it_can_locate_git_dir_in_workspaces(): void mkdir($worktreeRoot, 0777, true); $this->filesystem->dumpFile($worktreeRoot.'/commondir', '../..'); $this->filesystem->dumpFile($this->gitDir, 'gitdir: '.$this->workspace.'/git_root/worktrees/git_worktree'); - $this->assertEquals($this->workspace.'/git_root', $this->locator->locate($this->gitDir)); + $this->assertEquals($this->workspace.DIRECTORY_SEPARATOR.'git_root', $this->locator->locate($this->gitDir)); } }