Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b114049591 |
@@ -734,20 +734,18 @@ mod tests {
|
||||
.await;
|
||||
|
||||
let store = Arc::new(ClawStore::in_memory().expect("store opens"));
|
||||
store
|
||||
.add_account_watch("github", Some(&server.uri()), "acct-1")
|
||||
.expect("account watch lands");
|
||||
let (dispatcher, accounts, notifications) = test_parts(store.clone());
|
||||
accounts
|
||||
.put(
|
||||
rhema_identity::AccountDraft::new(
|
||||
"forge bot",
|
||||
"github",
|
||||
rhema_identity::Secret::new(rhema_identity::SecretKind::Token, "acct-tok"),
|
||||
)
|
||||
.with_id("acct-1"),
|
||||
)
|
||||
// The store mints the id; the watch row is what names it.
|
||||
let account = accounts
|
||||
.put(rhema_identity::AccountDraft::new(
|
||||
"forge bot",
|
||||
"github",
|
||||
rhema_identity::Secret::new(rhema_identity::SecretKind::Token, "acct-tok"),
|
||||
))
|
||||
.expect("account lands");
|
||||
store
|
||||
.add_account_watch("github", Some(&server.uri()), &account.id)
|
||||
.expect("account watch lands");
|
||||
let source = ForgeSource::new(&dispatcher, "github", store, accounts, notifications);
|
||||
|
||||
assert_eq!(
|
||||
|
||||
Reference in new issue
Block a user