Remove unused argument on runServer (#16237)

Этот коммит содержится в:
John Tzikas
2020-11-11 16:09:30 +02:00
коммит произвёл GitHub
родитель 9a62395087
Коммит ab50fa155b
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@@ -48,10 +48,10 @@ func serverCmdF(command *cobra.Command, args []string) error {
return errors.Wrap(err, "failed to load configuration")
}
return runServer(configStore, disableConfigWatch, usedPlatform, interruptChan)
return runServer(configStore, usedPlatform, interruptChan)
}
func runServer(configStore *config.Store, disableConfigWatch bool, usedPlatform bool, interruptChan chan os.Signal) error {
func runServer(configStore *config.Store, usedPlatform bool, interruptChan chan os.Signal) error {
// Setting the highest traceback level from the code.
// This is done to print goroutines from all threads (see golang.org/issue/13161)
// and also preserve a crash dump for later investigation.

Просмотреть файл

@@ -62,7 +62,7 @@ func TestRunServerSuccess(t *testing.T) {
// Use non-default listening port in case another server instance is already running.
*configStore.Get().ServiceSettings.ListenAddress = UnitTestListeningPort
err := runServer(configStore, th.disableConfigWatch, false, th.interruptChan)
err := runServer(configStore, false, th.interruptChan)
require.NoError(t, err)
}
@@ -113,7 +113,7 @@ func TestRunServerSystemdNotification(t *testing.T) {
*configStore.Get().ServiceSettings.ListenAddress = UnitTestListeningPort
// Start and stop the server
err = runServer(configStore, th.disableConfigWatch, false, th.interruptChan)
err = runServer(configStore, false, th.interruptChan)
require.NoError(t, err)
// Ensure the notification has been sent on the socket and is correct
@@ -135,6 +135,6 @@ func TestRunServerNoSystemd(t *testing.T) {
// Use non-default listening port in case another server instance is already running.
*configStore.Get().ServiceSettings.ListenAddress = UnitTestListeningPort
err := runServer(configStore, th.disableConfigWatch, false, th.interruptChan)
err := runServer(configStore, false, th.interruptChan)
require.NoError(t, err)
}