feat: make general creation daemon-atomic
This commit is contained in:
@@ -329,6 +329,7 @@ describe('auction integration flow', () => {
|
||||
strength: 55,
|
||||
intel: 55,
|
||||
character: 'Random',
|
||||
pic: true,
|
||||
});
|
||||
userSessions.push({
|
||||
username: user.username,
|
||||
|
||||
@@ -322,6 +322,7 @@ describe('integration initialization flow', () => {
|
||||
strength: 55,
|
||||
intel: 55,
|
||||
character: 'Random',
|
||||
pic: true,
|
||||
});
|
||||
const generalInfo = await userGameClient.general.me.query();
|
||||
if (!generalInfo?.general) {
|
||||
|
||||
@@ -639,6 +639,7 @@ describe('pm2 orchestrator e2e', () => {
|
||||
strength: 55,
|
||||
intel: 55,
|
||||
character: 'Random',
|
||||
pic: true,
|
||||
});
|
||||
expect(createdGeneral.generalId).toBeGreaterThan(0);
|
||||
|
||||
|
||||
@@ -230,10 +230,7 @@ describe('actual tournament lifecycle', () => {
|
||||
for (const [username, displayName] of users) {
|
||||
const login = await gatewayClient.auth.login.mutate({
|
||||
username,
|
||||
credential: sealGatewayPassword(
|
||||
`${username}-pass`,
|
||||
await gatewayClient.auth.passwordKey.query()
|
||||
),
|
||||
credential: sealGatewayPassword(`${username}-pass`, await gatewayClient.auth.passwordKey.query()),
|
||||
});
|
||||
const gatewayToken = await gatewayClient.auth.issueGameSession.mutate({
|
||||
sessionToken: login.sessionToken,
|
||||
@@ -252,6 +249,7 @@ describe('actual tournament lifecycle', () => {
|
||||
strength: 55,
|
||||
intel: 55,
|
||||
character: 'Random',
|
||||
pic: true,
|
||||
});
|
||||
generalIds.set(username, created.generalId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user