Verify ReleaseKit against a disposable remote

This commit is contained in:
2026-10-08 16:51:09 +00:00
parent e9b6b63e5e
commit c03457c814
2 changed files with 7 additions and 3 deletions

View File

@@ -39,8 +39,12 @@ func TestReleaseKitProfile(t *testing.T) {
if profile.Remote != "origin" {
t.Errorf("remote = %q, want origin", profile.Remote)
}
if profile.ExpectedPushURL != "https://gitea.maximumdirect.net/eric/ConfigKit.git" {
t.Errorf("expected push URL = %q", profile.ExpectedPushURL)
wantPushURL := "https://gitea.maximumdirect.net/eric/ConfigKit.git"
if fixturePushURL := os.Getenv("CONFIGKIT_TEST_EXPECTED_PUSH_URL"); fixturePushURL != "" {
wantPushURL = fixturePushURL
}
if profile.ExpectedPushURL != wantPushURL {
t.Errorf("expected push URL = %q, want %q", profile.ExpectedPushURL, wantPushURL)
}
goValidation := profile.Validation.Go
if !goValidation.Race || !goValidation.FullVet {