From c15bd7d9e8ee92d6f545bdd6927f46a8ccd86c60 Mon Sep 17 00:00:00 2001 From: Christophe Demarey Date: Mon, 16 Oct 2023 14:22:23 +0200 Subject: [PATCH] fix test --- .../PharoLauncherCLIConfigurationTest.class.st | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/PharoLauncher-CLI-Tests/PharoLauncherCLIConfigurationTest.class.st b/src/PharoLauncher-CLI-Tests/PharoLauncherCLIConfigurationTest.class.st index ee50a47a..5f740aad 100644 --- a/src/PharoLauncher-CLI-Tests/PharoLauncherCLIConfigurationTest.class.st +++ b/src/PharoLauncher-CLI-Tests/PharoLauncherCLIConfigurationTest.class.st @@ -3,7 +3,8 @@ Class { #superclass : #TestCase, #instVars : [ 'root', - 'errorStream' + 'errorStream', + 'outStream' ], #category : #'PharoLauncher-CLI-Tests' } @@ -22,8 +23,11 @@ PharoLauncherCLIConfigurationTest >> createPreferencesFileWith: aConfiguration [ PharoLauncherCLIConfigurationTest >> setUp [ super setUp. root := FileSystem memory root. + outStream := WriteStream on: (String new). errorStream := WriteStream on: (String new). - PhLNotificationCenter default errorStream: errorStream + PhLNotificationCenter default + errorStream: errorStream; + outStream: outStream. ] @@ -74,7 +78,7 @@ PharoLauncherCLIConfigurationTest >> testGetConfigurationWhenConfigurationFileAb config := PharoLauncherCLIConfiguration configurationFromFile: (root / 'launcherSettings.ston') asFileReference . self assert: (config isKindOf: PharoLauncherCLIConfiguration). - self assert: ( PhLNotificationCenter default errorStream contents includesSubstring: 'Config' ) + self assert: (PhLNotificationCenter default outStream contents includesSubstring: 'Config') ]