From b088bf0b7e872d0e6ba230d4e4b79625af4fb17e Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 9 May 2021 20:38:37 +0200 Subject: [PATCH] tests: improve another comment --- cmd/safcm-remote/sync/commands_test.go | 2 +- cmd/safcm-remote/sync/files_test.go | 4 ++-- cmd/safcm-remote/sync/packages_debian_test.go | 2 +- cmd/safcm-remote/sync/services_systemd_test.go | 2 +- cmd/safcm/sync_sync_test.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/safcm-remote/sync/commands_test.go b/cmd/safcm-remote/sync/commands_test.go index 9de9bd5..f6293b4 100644 --- a/cmd/safcm-remote/sync/commands_test.go +++ b/cmd/safcm-remote/sync/commands_test.go @@ -54,7 +54,7 @@ func TestSyncCommands(t *testing.T) { }{ // NOTE: Also update MsgSyncResp in safcm test cases when - // changing anything here! + // changing the MsgSyncResp struct! { "successful command", diff --git a/cmd/safcm-remote/sync/files_test.go b/cmd/safcm-remote/sync/files_test.go index 27011ac..57d27c7 100644 --- a/cmd/safcm-remote/sync/files_test.go +++ b/cmd/safcm-remote/sync/files_test.go @@ -70,7 +70,7 @@ func TestSyncFiles(t *testing.T) { }{ // NOTE: Also update MsgSyncResp in safcm test cases when - // changing anything here! + // changing the MsgSyncResp struct! // See TestSyncFile() for most file related tests. This // function only tests the overall results and triggers. @@ -917,7 +917,7 @@ func TestSyncFile(t *testing.T) { }{ // NOTE: Also update MsgSyncResp in safcm test cases when - // changing anything here! + // changing the MsgSyncResp struct! // TODO: Add tests for chown and run them only as root diff --git a/cmd/safcm-remote/sync/packages_debian_test.go b/cmd/safcm-remote/sync/packages_debian_test.go index 0e3411d..bd54a2f 100644 --- a/cmd/safcm-remote/sync/packages_debian_test.go +++ b/cmd/safcm-remote/sync/packages_debian_test.go @@ -40,7 +40,7 @@ func TestSyncPackagesDebian(t *testing.T) { }{ // NOTE: Also update MsgSyncResp in safcm test cases when - // changing anything here! + // changing the MsgSyncResp struct! { "packages already installed", diff --git a/cmd/safcm-remote/sync/services_systemd_test.go b/cmd/safcm-remote/sync/services_systemd_test.go index f4f7f49..e45e790 100644 --- a/cmd/safcm-remote/sync/services_systemd_test.go +++ b/cmd/safcm-remote/sync/services_systemd_test.go @@ -39,7 +39,7 @@ func TestSyncServicesSystemd(t *testing.T) { }{ // NOTE: Also update MsgSyncResp in safcm test cases when - // changing anything here! + // changing the MsgSyncResp struct! { "no service change necessary", diff --git a/cmd/safcm/sync_sync_test.go b/cmd/safcm/sync_sync_test.go index 5c415e3..889aa2f 100644 --- a/cmd/safcm/sync_sync_test.go +++ b/cmd/safcm/sync_sync_test.go @@ -47,7 +47,7 @@ func TestHostSyncReq(t *testing.T) { }{ // NOTE: Also update MsgSyncReq in safcm-remote test cases - // when changing anything here! + // changing the MsgSyncReq struct! { "project: host1", -- 2.43.2