From 22469bb83bcf902804191d4896c2224e5d5b9f75 Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Thu, 6 Jun 2019 12:20:26 +0300 Subject: [PATCH] * control_update_test.go: "+build ignore" --- control_update_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/control_update_test.go b/control_update_test.go index 55a4fb21..3e142a78 100644 --- a/control_update_test.go +++ b/control_update_test.go @@ -1,3 +1,5 @@ +// +build ignore + package main import ( @@ -5,7 +7,7 @@ import ( "testing" ) -func testDoUpdate(t *testing.T) { +func TestDoUpdate(t *testing.T) { config.DNS.Port = 0 config.ourWorkingDir = "." u := updateInfo{ @@ -27,7 +29,7 @@ func testDoUpdate(t *testing.T) { os.RemoveAll(u.backupDir) } -func testTargzFileUnpack(t *testing.T) { +func TestTargzFileUnpack(t *testing.T) { fn := "./dist/AdGuardHome_v0.95_linux_amd64.tar.gz" outdir := "./test-unpack" _ = os.Mkdir(outdir, 0755) @@ -39,7 +41,7 @@ func testTargzFileUnpack(t *testing.T) { os.RemoveAll(outdir) } -func testZipFileUnpack(t *testing.T) { +func TestZipFileUnpack(t *testing.T) { fn := "./dist/AdGuardHome_v0.95_Windows_amd64.zip" outdir := "./test-unpack" _ = os.Mkdir(outdir, 0755)