From 1c0fb1d2982ef869410410b9cc5ea24f3ad86315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Fri, 23 Jun 2023 04:26:37 +0800 Subject: [PATCH] fix: tests --- .gitlab-ci.yml | 2 +- packages/helpers/os_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 865fd252..2cd215c7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: golang:alpine +image: golang:bookworm # 在每个任务执行前运行 before_script: diff --git a/packages/helpers/os_test.go b/packages/helpers/os_test.go index bcd63a42..10e1fdf8 100644 --- a/packages/helpers/os_test.go +++ b/packages/helpers/os_test.go @@ -15,7 +15,7 @@ func TestOSHelperTestSuite(t *testing.T) { } func (s *OSHelperTestSuite) TestIsDebian() { - s.False(IsDebian()) + s.True(IsDebian()) } func (s *OSHelperTestSuite) TestIsRHEL() {