mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 22:06:38 +08:00
16 lines
335 B
Go
16 lines
335 B
Go
//go:build !windows
|
|
|
|
package updater
|
|
|
|
import (
|
|
"path/filepath"
|
|
"testing"
|
|
)
|
|
|
|
func TestRemoveBackupBinaryIgnoresMissingFile(t *testing.T) {
|
|
backupPath := filepath.Join(t.TempDir(), "openflare-agent.bak")
|
|
if err := removeBackupBinary(backupPath); err != nil {
|
|
t.Fatalf("expected missing backup cleanup to be ignored: %v", err)
|
|
}
|
|
}
|