aboutsummaryrefslogtreecommitdiff
path: root/internal/github/github_test.go
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2025-05-19 16:43:34 -0500
committerSlack Coder <slackcoder@server.ky>2025-05-19 16:43:34 -0500
commit09ed9fb6f2e515e88c9533e233f62e5ca3248937 (patch)
tree7b08ff62e264f962574aa43320fe4781060e3a82 /internal/github/github_test.go
parent8e3b05f4600bf7007c83ad904592c03109fa79ab (diff)
downloadmirror-09ed9fb6f2e515e88c9533e233f62e5ca3248937.tar.xz
Remove unneeded tests
Diffstat (limited to 'internal/github/github_test.go')
-rw-r--r--internal/github/github_test.go34
1 files changed, 0 insertions, 34 deletions
diff --git a/internal/github/github_test.go b/internal/github/github_test.go
deleted file mode 100644
index 5f3a270..0000000
--- a/internal/github/github_test.go
+++ /dev/null
@@ -1,34 +0,0 @@
-package github
-
-import (
- "os"
- "path"
- "testing"
-
- "git.server.ky/slackcoder/mirror/internal"
- "github.com/stretchr/testify/require"
-)
-
-func TestMirrorDendrite(t *testing.T) {
- d := t.TempDir()
-
- dst := internal.MustURL(d)
- src := internal.MustURL("https://github.com/matrix-org/dendrite")
- oldFile := "random_file.txt"
-
- f, cErr := os.Create(path.Join(dst.Path, oldFile))
- require.NoError(t, cErr)
- f.Close()
-
- c := NewClient()
- err := c.MirrorAssets(dst, src)
- require.NoError(t, err, "dendrite assets")
-
- require.FileExists(t, path.Join(dst.Path, "v0.13.7", "dendrite-0.13.7.tar.gz"))
- require.FileExists(t, path.Join(dst.Path, "v0.13.7", "dendrite-0.13.7.zip"))
-
- err = c.MirrorAssets(dst, src)
- require.NoError(t, err, "dendrite assets")
-
- require.NoFileExists(t, path.Join(dst.Path, oldFile), "only files from mirror should exist")
-}