mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 14:31:02 +00:00 
			
		
		
		
	**Backport:** https://codeberg.org/forgejo/forgejo/pulls/7337 - Massive replacement of changing `code.gitea.io/gitea` to `forgejo.org`. - Resolves forgejo/discussions#258 Co-authored-by: Gusted <postmaster@gusted.xyz> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7354 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org> Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			754 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			754 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Copyright 2024 The Gitea Authors. All rights reserved.
 | |
| // SPDX-License-Identifier: MIT
 | |
| 
 | |
| // This "test" is meant to be run with `make test-e2e-debugserver` and will just
 | |
| // keep open a gitea instance in a test environment (with the data from
 | |
| // `models/fixtures`) on port 3000. This is useful for debugging e2e tests, for
 | |
| // example with the playwright vscode extension.
 | |
| 
 | |
| //nolint:forbidigo
 | |
| package e2e
 | |
| 
 | |
| import (
 | |
| 	"fmt"
 | |
| 	"net/url"
 | |
| 	"os"
 | |
| 	"os/signal"
 | |
| 	"syscall"
 | |
| 	"testing"
 | |
| 
 | |
| 	"forgejo.org/modules/setting"
 | |
| )
 | |
| 
 | |
| func TestDebugserver(t *testing.T) {
 | |
| 	done := make(chan os.Signal, 1)
 | |
| 	signal.Notify(done, syscall.SIGINT, syscall.SIGTERM)
 | |
| 
 | |
| 	onForgejoRun(t, func(*testing.T, *url.URL) {
 | |
| 		defer DeclareGitRepos(t)()
 | |
| 		fmt.Println(setting.AppURL)
 | |
| 		<-done
 | |
| 	})
 | |
| }
 |