Skip to content

Commit

Permalink
fix: change the default rpc "domainNamespace" to 'policy'
Browse files Browse the repository at this point in the history
test: use PolicyService factory constructor rather than PolicyServiceImpl
  • Loading branch information
gkc committed Dec 9, 2024
1 parent 51f1093 commit a2409fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/at_policy/lib/src/policy/interfaces.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ abstract class PolicyService implements AtRpcCallbacks {
required AtClient atClient,
required String baseNamespace,
required PolicyRequestHandler handler,
String policyRequestNamespace = 'requests.policy',
String policyRequestNamespace = 'policy',
String? loggingAtsign,
Set<String>? allowList,
bool allowAll = true,
Expand Down
3 changes: 1 addition & 2 deletions packages/at_policy/test/at_policy_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:at_client/at_client.dart';
import 'package:at_policy/at_policy.dart';
import 'package:at_policy/src/policy/impl.dart';
import 'package:at_utils/at_logger.dart';
import 'package:mocktail/mocktail.dart';
import 'package:test/test.dart';
Expand Down Expand Up @@ -32,7 +31,7 @@ void main() {
late PolicyService ps;

setUp(() {
ps = PolicyServiceImpl(
ps = PolicyService(
atClient: atClient,
handler: TestHandler(),
baseNamespace: 'test',
Expand Down

0 comments on commit a2409fa

Please sign in to comment.