Skip to content

WIP: continued Pebble integration test work#76

Closed
cpu wants to merge 5 commits intodjc:mainfrom
cpu:cpu-pebble-ci
Closed

WIP: continued Pebble integration test work#76
cpu wants to merge 5 commits intodjc:mainfrom
cpu:cpu-pebble-ci

Conversation

@cpu
Copy link
Collaborator

@cpu cpu commented Jan 28, 2025

Following up on our discussion in #75. Here's where I got after an hour or two of fiddling around.

It's a bit messy and I'm holding sync lock guards across await points so clippy isn't pleased. I think the guard type I worked up is pretty poor in general, but it's a place to start.

I also tried to generalize a bit of the order handling logic and got something workable w/ the provisioning callback but I think there's plenty of room for improvement.

cpu added 5 commits January 28, 2025 12:11
The test is now ignored and not disabled, and the invocation to run it
has changed.
It was only async to allow waiting until the port was available. The
caller can do that itself, and then the constructor is easier to use
with a static context.
No doubt still some room for improvement, but this seems to work as
a proof of concept.
I bet there's a way to make the `complete_order()` signature less gross,
but I'm pretty noob-ish with async rust and the generics get unwieldly
quick.
Feels like there's still room to cut down on the boilerplate in the
top-level tests.
@cpu
Copy link
Collaborator Author

cpu commented Feb 3, 2025

Going to close this for now. I want to take another pass and try to make something less underbaked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant