Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watcher is not restarting the moclojer when I change the spec file #208

Closed
2 tasks done
matheusfrancisco opened this issue Dec 23, 2023 · 1 comment · Fixed by #209
Closed
2 tasks done

Watcher is not restarting the moclojer when I change the spec file #208

matheusfrancisco opened this issue Dec 23, 2023 · 1 comment · Fixed by #209
Assignees
Milestone

Comments

@matheusfrancisco
Copy link
Member

Search first

  • I searched and no similar issues were found

What Happened?

Watcher is not starting the moclojer.
I'm passing the file /Users/matheus.machado/.config/moclojer.yaml but when I change and i see the path it is
this one [sun.nio.fs.UnixPath 0x6147ea1e "/Users/matheus.machado/dev/m/cljam/moclojer/moclojer.yaml"]
but the correctly path it should be this one /Users/matheus.machado/.config/moclojer.yaml

Reproduce the Bug

Run moclojer and change the endpoint, you should expect it changes but it doesn’t .

moclojer config

# This mock register route: GET /hello/:username
- endpoint:
    method: GET
    path: /hello/:username
    response:
      # Note: the status could be omitted because 200 is the default
      status: 200
      headers:
        Content-Type: application/json
      # Note: the body will receive the value passed in the url using the
      # :username placeholder
      body: >
        {
          "hello": "{{path-params.username}}!"
        }

Expected Behavior

Change the mocks and it should restart the server with the new files.

Version and environment information

OSX

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)
@matheusfrancisco
Copy link
Member Author

@avelino I'm working on this, I got sucked but i'm working on this.

Idk why I'm passing the /Users/matheus.machado/.config/moclojer.yaml and moclojer is changing /Users/matheus.machado/dev/m/cljam/moclojer/moclojer.yaml it might putting something on the main thread path.
I'm looking at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Q4 2023 – Oct-Dec
Development

Successfully merging a pull request may close this issue.

1 participant