Skip to content

Commit

Permalink
Fixed flaky models/Project test
Browse files Browse the repository at this point in the history
  • Loading branch information
abujeda committed Oct 3, 2024
1 parent bd22a41 commit 30ff532
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/dashboard/test/models/projects_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class ProjectsTest < ActiveSupport::TestCase
test 'creates manifest.yml in .ondemand config directory' do
Dir.mktmpdir do |tmp|
projects_path = Pathname.new(tmp)
project = create_project(projects_path)
project = create_project(projects_path, id: "test-#{Project.next_id}")

assert project.errors.inspect
assert_equal "#{projects_path}/projects/#{project.id}", project.directory.to_s
Expand Down Expand Up @@ -172,7 +172,8 @@ class ProjectsTest < ActiveSupport::TestCase
test 'update project manifest.yml file' do
Dir.mktmpdir do |tmp|
projects_path = Pathname.new(tmp)
project = create_project(projects_path)

project = create_project(projects_path, id: "test-#{Project.next_id}")

name = 'test-project-2'
description = 'my test project'
Expand Down

0 comments on commit 30ff532

Please sign in to comment.