fix(vat): resolve non-deterministic ORDER BY in TestVAT_ToggleLifecycle
Frontend Lint & Vulns / Lint & vulns (push) Failing after 48s
Frontend Lint & Vulns / Lint & vulns (push) Failing after 48s
The phase 3 payment query used ORDER BY created_at DESC LIMIT 1. Within a single transaction, NOW() returns the same timestamp for all inserts, making the ordering non-deterministic when other parallel tests insert payment rows with the same timestamp. Fix by parsing the response's payment ID and querying by it directly. Also revert eslint.config.js back to error-level rules for all categories (removing the previous 'warn' overrides).
This commit is contained in:
@@ -27,16 +27,16 @@ export default defineConfig(
|
||||
'no-undef': 'off',
|
||||
// Allow underscore prefix for unused variables
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'warn',
|
||||
'error',
|
||||
{
|
||||
argsIgnorePattern: '^_',
|
||||
varsIgnorePattern: '^_',
|
||||
caughtErrorsIgnorePattern: '^_'
|
||||
}
|
||||
],
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
'no-useless-escape': 'warn',
|
||||
'no-empty': 'warn'
|
||||
'@typescript-eslint/no-explicit-any': 'error',
|
||||
'no-useless-escape': 'error',
|
||||
'no-empty': 'error'
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -50,15 +50,6 @@ export default defineConfig(
|
||||
}
|
||||
},
|
||||
rules: {
|
||||
'svelte/no-navigation-without-resolve': 'warn',
|
||||
'svelte/no-useless-mustaches': 'warn',
|
||||
'svelte/no-unused-props': 'warn',
|
||||
'svelte/no-dom-manipulating': 'warn',
|
||||
'svelte/no-unnecessary-state-wrap': 'warn',
|
||||
'svelte/prefer-writable-derived': 'warn',
|
||||
'svelte/prefer-svelte-reactivity': 'warn',
|
||||
'svelte/valid-prop-names-in-kit-pages': 'warn',
|
||||
'svelte/require-each-key': 'warn'
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user