function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rahul soni 20rahul soni 20 

getting error in apex superbudge challange 6 in developer consule.

getting error :   Invalid type: WarehouseSyncSchedule

@istest
public class WarehouseSyncScheduleTest
{
     @isTest
    static void WarehousescheduleTest(){
        String scheduleTime = '00 00 01 * * ?';
        Test.startTest();
        Test.setMock(HttpCalloutMock.class, new WarehouseCalloutServiceMock());
        String jobID=System.schedule('Warehouse Time To Schedule to Test', scheduleTime, new WarehouseSyncSchedule());
        Test.stopTest();
        CronTrigger a=[SELECT Id FROM CronTrigger where NextFireTime > today];
        System.assertEquals(jobID, a.Id,'Schedule ');
    }
}
   
ANUTEJANUTEJ (Salesforce Developers) 
Hi Rahul,

Greetings!

There is a separate Trailhead team who can help you with these issues.So,can you please use the below link to reach out to them so that one of the agent will get in touch with you.

Support:https://trailhead.salesforce.com/help

Thank you!

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Warm Regards,
Anutej
rahul soni 20rahul soni 20
It didn't help. they told is is not an bug or issue from there side. So possibly this is programing glitch. so I am unable to resolve it.