From e4edbc30cce32259d7d3e8a67092e00d592d59b3 Mon Sep 17 00:00:00 2001 From: Stanislav Chzhen Date: Tue, 16 Sep 2025 17:24:24 +0300 Subject: [PATCH] Pull request 2476: AGDNS-3086-aghnet-fix-darwin-tests Squashed commit of the following: commit e8003531dbbd21817403f28f86c1d85c305ebbdb Author: Stanislav Chzhen Date: Tue Sep 16 16:57:36 2025 +0300 aghnet: fix darwin tests --- internal/aghnet/net_darwin_internal_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/aghnet/net_darwin_internal_test.go b/internal/aghnet/net_darwin_internal_test.go index 411d2d307..a8e19cdc1 100644 --- a/internal/aghnet/net_darwin_internal_test.go +++ b/internal/aghnet/net_darwin_internal_test.go @@ -81,7 +81,7 @@ func TestIfaceHasStaticIP(t *testing.T) { }), ifaceName: "en0", wantHas: assert.False, - wantErrMsg: `can't get`, + wantErrMsg: `command "networksetup" failed: running: can't get: `, }, { name: "port_bad_output", cmdCons: agh.NewMultipleCommandConstructor(agh.ExternalCommand{ @@ -216,7 +216,7 @@ func TestIfaceSetStaticIP(t *testing.T) { Code: 0, }), fsys: succFsys, - wantErrMsg: `can't set`, + wantErrMsg: `command "networksetup" failed: running: can't set: `, }, { name: "set_manual_error", cmdCons: agh.NewMultipleCommandConstructor(agh.ExternalCommand{ @@ -241,7 +241,7 @@ func TestIfaceSetStaticIP(t *testing.T) { Code: 0, }), fsys: succFsys, - wantErrMsg: `can't set`, + wantErrMsg: `command "networksetup" failed: running: can't set: `, }} for _, tc := range testCases {