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

make sure ftl.Map handles changes in underlying values correctly #1390

Closed
matt2e opened this issue May 2, 2024 · 0 comments · Fixed by #1435
Closed

make sure ftl.Map handles changes in underlying values correctly #1390

matt2e opened this issue May 2, 2024 · 0 comments · Fixed by #1435
Assignees

Comments

@matt2e
Copy link
Collaborator

matt2e commented May 2, 2024

From slack:

aat
Something else re. testing
@mtoohey

  • ftl.Map will need to change such that its caching is contingent on the underlying value being the same, rather than blindly doing it
ctx := ftltest.Context(
    ftltest.WithConfig(example, "hello"),
)

//Call a verb that uses ftl.Map with example config
resp, err := Verb(ctx, req)

ctx = ftltest.Context(
    ftltest.WithConfig(example, "world"),
)

//When this execution of the verb is done, it should execute again because the underlying value is different (hello -> world)
resp, err = Verb(ctx, req)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant