Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Rename apptest Run
  • Loading branch information
Emyrk committed Apr 6, 2023
commit 40daa3690f3a153d006c3bf537e84f55e10bb0f6
4 changes: 2 additions & 2 deletions coderd/workspaceapps/apptest/apptest.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import (
"github.com/coder/coder/testutil"
)

// RunTests runs the entire workspace app test suite against deployments minted
// Run runs the entire workspace app test suite against deployments minted
// by the provided factory.
func RunTests(t *testing.T, factory DeploymentFactory) {
func Run(t *testing.T, factory DeploymentFactory) {
setupProxyTest := func(t *testing.T, opts *DeploymentOptions) *AppDetails {
return setupProxyTestWithFactory(t, factory, opts)
}
Expand Down
2 changes: 1 addition & 1 deletion coderd/workspaceapps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func TestGetAppHost(t *testing.T) {
func TestWorkspaceApps(t *testing.T) {
t.Parallel()

apptest.RunTests(t, func(t *testing.T, opts *apptest.DeploymentOptions) *apptest.Deployment {
apptest.Run(t, func(t *testing.T, opts *apptest.DeploymentOptions) *apptest.Deployment {
deploymentValues := coderdtest.DeploymentValues(t)
deploymentValues.DisablePathApps = clibase.Bool(opts.DisablePathApps)
deploymentValues.Dangerous.AllowPathAppSharing = clibase.Bool(opts.DangerousAllowPathAppSharing)
Expand Down